From daf43ed80042f511c53635d7163f747b47d032e7 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 27 Mar 2019 15:50:34 +0000 Subject: [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 llvm-svn: 357079 --- libcxx/utils/libcxx/test/config.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcxx/utils') diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index b1d0736027f..53f2507e72b 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -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)): -- cgit v1.2.3