diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp index 893d09221fce2..e969aa4e8d66a 100644 --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp @@ -230,7 +230,7 @@ void RunStringMoveTest(const fs::path::value_type* Expect) { assert(p == Expect); { // Signature test - LIBCPP_ONLY(ASSERT_NOEXCEPT(p = std::move(ss))); + LIBCPP_ASSERT_NOEXCEPT(p = std::move(ss)); } } diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp index 56322575fef21..4ef28ee01d8d0 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp @@ -30,7 +30,7 @@ int main(int, char**) { typedef std::underlying_type::type UT; static_assert(!std::is_convertible::value, ""); - LIBCPP_ONLY(static_assert(std::is_same::value, "")); // Implementation detail + LIBCPP_STATIC_ASSERT(std::is_same::value, ""); // Implementation detail typedef check_bitmask_type BitmaskTester; assert(BitmaskTester::check()); diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp index 2597457ed747e..4480b1e4e3357 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp @@ -29,7 +29,7 @@ int main(int, char**) { // Check that E is a scoped enum by checking for conversions. typedef std::underlying_type::type UT; static_assert(!std::is_convertible::value, ""); - LIBCPP_ONLY(static_assert(std::is_same::value, "")); + LIBCPP_STATIC_ASSERT(std::is_same::value, ""); typedef check_bitmask_type BitmaskTester; assert(BitmaskTester::check()); diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp index 63db8892b0928..6062935126dd2 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp @@ -29,7 +29,7 @@ int main(int, char**) { typedef std::underlying_type::type UT; static_assert(!std::is_convertible::value, ""); - LIBCPP_ONLY(static_assert(std::is_same::value, "")); // Implementation detail + LIBCPP_STATIC_ASSERT(std::is_same::value, ""); // Implementation detail // The standard doesn't specify the numeric values of the enum. LIBCPP_STATIC_ASSERT( diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp index afc64f6f00b4d..0bdae48702385 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp @@ -32,7 +32,7 @@ int main(int, char**) { typedef std::underlying_type::type UT; static_assert(!std::is_convertible::value, ""); - LIBCPP_ONLY(static_assert(std::is_same::value, "")); // Implementation detail + LIBCPP_STATIC_ASSERT(std::is_same::value, ""); // Implementation detail typedef check_bitmask_type BitmaskTester; assert(BitmaskTester::check()); diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp index 27aa5e29de20c..d1893847f01b4 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp @@ -30,7 +30,7 @@ int main(int, char**) { typedef std::underlying_type::type UT; static_assert(!std::is_convertible::value, ""); - LIBCPP_ONLY(static_assert(std::is_same::value, "")); // Implementation detail + LIBCPP_STATIC_ASSERT(std::is_same::value, ""); // Implementation detail typedef check_bitmask_type BitmaskTester; assert(BitmaskTester::check()); diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp index 68fc09157c4b6..7a60d1ab29f4a 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp @@ -51,7 +51,7 @@ static void basic_test() assert(!ec); assert(ret.is_absolute()); assert(PathEqIgnoreSep(ret, TC.expect)); - LIBCPP_ONLY(assert(PathEq(ret, TC.expect))); + LIBCPP_ASSERT(PathEq(ret, TC.expect)); } } diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/canonical.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/canonical.pass.cpp index 6e947a355a541..0098fe8ee698e 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/canonical.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/canonical.pass.cpp @@ -104,7 +104,7 @@ static void test_exception_contains_paths() } catch (filesystem_error const& err) { assert(err.path1() == p); // libc++ provides the current path as the second path in the exception - LIBCPP_ONLY(assert(err.path2() == current_path())); + LIBCPP_ASSERT(err.path2() == current_path()); } fs::current_path(static_env.Dir); try { @@ -112,7 +112,7 @@ static void test_exception_contains_paths() assert(false); } catch (filesystem_error const& err) { assert(err.path1() == p); - LIBCPP_ONLY(assert(err.path2() == static_env.Dir)); + LIBCPP_ASSERT(err.path2() == static_env.Dir); } #endif } diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp index 0f5a7692bb70d..f009befa49c37 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp @@ -40,7 +40,7 @@ static void test_signatures() ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr)); ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr, opts)); ASSERT_NOEXCEPT(fs::permissions(p, pr, ec)); - LIBCPP_ONLY(ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr, opts, ec))); + LIBCPP_ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr, opts, ec)); } static void test_error_reporting() diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp index c0a98a62e6f9a..aed87b73121d0 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp @@ -95,7 +95,7 @@ static void basic_tests() PutEnv(TC.name, dne); ec = GetTestEC(); ret = temp_directory_path(ec); - LIBCPP_ONLY(assert(ErrorIs(ec, expect_errc))); + LIBCPP_ASSERT(ErrorIs(ec, expect_errc)); assert(ec != GetTestEC()); assert(ec); assert(ret == ""); @@ -104,7 +104,7 @@ static void basic_tests() PutEnv(TC.name, file); ec = GetTestEC(); ret = temp_directory_path(ec); - LIBCPP_ONLY(assert(ErrorIs(ec, expect_errc))); + LIBCPP_ASSERT(ErrorIs(ec, expect_errc)); assert(ec != GetTestEC()); assert(ec); assert(ret == "");