diff options
| author | Louis Dionne <ldionne@apple.com> | 2019-03-27 15:50:34 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2019-03-27 15:50:34 +0000 |
| commit | daf43ed80042f511c53635d7163f747b47d032e7 (patch) | |
| tree | 7b450270631b3561d809bad9956d698269fd60bd /libcxx/utils | |
| parent | 55beb2f5497013a09637548aed4bc5f23dec62e7 (diff) | |
| download | bcm5719-llvm-daf43ed80042f511c53635d7163f747b47d032e7.tar.gz bcm5719-llvm-daf43ed80042f511c53635d7163f747b47d032e7.zip | |
[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
Diffstat (limited to 'libcxx/utils')
| -rw-r--r-- | libcxx/utils/libcxx/test/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)): |

