From: Edoardo Sanguineti Date: Thu, 20 Jul 2023 08:14:07 +0000 (+0000) Subject: [libc++] Fix tests for the runtime assertions in X-Git-Tag: upstream/17.0.6~1022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d16115ddfcc4ec1c032ef6f879e864080a25f03e;p=platform%2Fupstream%2Fllvm.git [libc++] Fix tests for the runtime assertions in 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 --- 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 // 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 //