mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-23 11:59:52 +00:00
[libc++] Add proper XFAILs for shared_mutex tests
Dylib support for shared_mutex was added in macOS 10.12, so the tests should be XFAILed accordingly instead of being completely disabled whenever availability is enabled. rdar://problem/48769104 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@357079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
955113db37
commit
d88714db16
@ -1,2 +0,0 @@
|
||||
if 'availability' in config.available_features:
|
||||
config.unsupported = True
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// FLAKY_TEST.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// FLAKY_TEST.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// FLAKY_TEST.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// FLAKY_TEST.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// FLAKY_TEST.
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: c++98, c++03, c++11
|
||||
// XFAIL: dylib-has-no-shared_mutex
|
||||
|
||||
// <shared_mutex>
|
||||
|
||||
|
@ -1145,6 +1145,10 @@ class Configuration(object):
|
||||
# features are enabled/disabled. Otherwise, disable availability markup,
|
||||
# which is not relevant for non-shipped flavors of libc++.
|
||||
if self.use_system_cxx_lib:
|
||||
# Dylib support for shared_mutex was added in macosx10.12.
|
||||
if name == 'macosx' and version in ('10.%s' % v for v in range(7, 12)):
|
||||
self.config.available_features.add('dylib-has-no-shared_mutex')
|
||||
self.lit_config.note("shared_mutex is not supported by the deployment target")
|
||||
# Throwing bad_optional_access, bad_variant_access and bad_any_cast is
|
||||
# supported starting in macosx10.14.
|
||||
if name == 'macosx' and version in ('10.%s' % v for v in range(7, 14)):
|
||||
|
Loading…
Reference in New Issue
Block a user