[tests] Accept XFAIL arguments that match any part of a feature.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,8 +21,9 @@ def isExpectedFail(test, xfails):
|
|||||||
if item == '*':
|
if item == '*':
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# If this is an exact match for one of the features, it fails.
|
# If this is a part of any of the features, it fails.
|
||||||
if item in test.config.available_features:
|
for feature in test.config.available_features:
|
||||||
|
if item in feature:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# If this is a part of the target triple, it fails.
|
# If this is a part of the target triple, it fails.
|
||||||
|
Reference in New Issue
Block a user