diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp @@ -331,8 +331,8 @@ doAppendSourceTest(TC); } for (auto const & TC : LongLHSCases) { - doAppendSourceAllocTest(TC); - doAppendSourceAllocTest(TC); + LIBCPP_ONLY(doAppendSourceAllocTest(TC)); + LIBCPP_ONLY(doAppendSourceAllocTest(TC)); } test_sfinae(); diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp @@ -356,7 +356,7 @@ const char* E = TC.expect; PathReserve(LHS, StrLen(E) + 5); { - DisableAllocationGuard g; + LIBCPP_ONLY(DisableAllocationGuard g); path& Ref = (LHS += RHS); assert(&Ref == &LHS); } @@ -368,14 +368,14 @@ const char* E = TC.expect; PathReserve(LHS, StrLen(E) + 5); { - DisableAllocationGuard g; + LIBCPP_ONLY(DisableAllocationGuard g); path& Ref = (LHS += RHS); assert(&Ref == &LHS); } assert(LHS == E); } - doConcatSourceAllocTest(TC); - doConcatSourceAllocTest(TC); + LIBCPP_ONLY(doConcatSourceAllocTest(TC)); + LIBCPP_ONLY(doConcatSourceAllocTest(TC)); } for (auto const& TC : CharTestCases) { doConcatECharTest(TC); diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03 +// REQUIRES: libc++ //