aboutsummaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorEdoardo Sanguineti <edoardo.sanguineti222@gmail.com>2023-07-20 08:14:07 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-07-20 08:15:02 +0000
commitd16115ddfcc4ec1c032ef6f879e864080a25f03e (patch)
tree8ba7d60cf882fa85b88f378f0a04e96388ef1330 /libcxx
parent0c41c59deebc25682f85175aa92e5fafa1c619ef (diff)
downloadllvm-d16115ddfcc4ec1c032ef6f879e864080a25f03e.zip
llvm-d16115ddfcc4ec1c032ef6f879e864080a25f03e.tar.gz
llvm-d16115ddfcc4ec1c032ef6f879e864080a25f03e.tar.bz2
[libc++] Fix tests for the runtime assertions in <barrier>
As @ldionne pointed out to me in a newer revision, there is a //REQUIRE comment in both files edited by this patch that prevents the test to run on some platforms where it should actually run. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D155755
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/libcxx/thread/thread.barrier/assert.arrive.pass.cpp5
-rw-r--r--libcxx/test/libcxx/thread/thread.barrier/assert.ctor.pass.cpp5
2 files changed, 4 insertions, 6 deletions
diff --git a/libcxx/test/libcxx/thread/thread.barrier/assert.arrive.pass.cpp b/libcxx/test/libcxx/thread/thread.barrier/assert.arrive.pass.cpp
index e36f8bc..b0ee1c2 100644
--- a/libcxx/test/libcxx/thread/thread.barrier/assert.arrive.pass.cpp
+++ b/libcxx/test/libcxx/thread/thread.barrier/assert.arrive.pass.cpp
@@ -7,12 +7,11 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: no-threads
// UNSUPPORTED: c++03, c++11, c++14, c++17
+// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
-// REQUIRES: availability-synchronization_library-missing
-// XFAIL: target={{.+}}-apple-macosx10.{{13|15}}
+// XFAIL: availability-verbose_abort-missing
// REQUIRES: has-unix-headers
-// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_ASSERTIONS=1
// <barrier>
diff --git a/libcxx/test/libcxx/thread/thread.barrier/assert.ctor.pass.cpp b/libcxx/test/libcxx/thread/thread.barrier/assert.ctor.pass.cpp
index 10641eb..161fb72 100644
--- a/libcxx/test/libcxx/thread/thread.barrier/assert.ctor.pass.cpp
+++ b/libcxx/test/libcxx/thread/thread.barrier/assert.ctor.pass.cpp
@@ -7,12 +7,11 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: no-threads
// UNSUPPORTED: c++03, c++11, c++14, c++17
+// UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode
-// REQUIRES: availability-synchronization_library-missing
-// XFAIL: target={{.+}}-apple-macosx10.{{13|15}}
+// XFAIL: availability-verbose_abort-missing
// REQUIRES: has-unix-headers
-// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_ASSERTIONS=1
// <barrier>