forked from OSchip/llvm-project
[libc++] Add missing XFAIL to tests that need __atomic_* libcalls
FreeBSD did not provide the __atomic_* functions as part of the base system until recently. They were added to libgcc_s in SVN revision r364753 (August 2020), so check for availability of 'non-lockfree-atomics' so that these tests do not fail unexpectedly on older versions of FreeBSD. This also removes the #ifndef __APPLE__ from atomic_helpers.h that was used to work around lack of atomic runtime functions on older Apple platforms and replaces it with XFAIL: !non-lockfree-atomics. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D88818
This commit is contained in:
parent
00530dee5d
commit
32733c347d
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 34
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 38
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 34
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 38
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... fails assertion line 31
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 32
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -106,13 +106,14 @@ struct TestEachAtomicType {
|
|||
void operator()() const {
|
||||
TestEachIntegralType<TestFunctor>()();
|
||||
TestFunctor<UserAtomicType>()();
|
||||
#ifndef __APPLE__
|
||||
/*
|
||||
These aren't going to be lock-free,
|
||||
so some libatomic.a is necessary.
|
||||
Note: These aren't going to be lock-free,
|
||||
so some libatomic.a is necessary. To handle
|
||||
the case where the support functions are
|
||||
missing, all tests that use this file should add:
|
||||
XFAIL: !non-lockfree-atomics
|
||||
*/
|
||||
TestFunctor<LargeUserAtomicType>()();
|
||||
#endif
|
||||
/*
|
||||
Enable these once we have P0528
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 36
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !is-lockfree-runtime-function
|
||||
|
||||
// <atomic>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 35
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
// ... assertion fails line 31
|
||||
|
||||
// <atomic>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
|
||||
// <atomic>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
|
||||
// <atomic>
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// XFAIL: c++03
|
||||
// XFAIL: !non-lockfree-atomics
|
||||
|
||||
// This test requires the dylib support introduced in D68480,
|
||||
// which hasn't shipped yet.
|
||||
|
|
Loading…
Reference in New Issue