summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-02-06 00:04:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-02-06 00:04:52 +0000
commitba65d61767db168c4f2350357307b4577ff7f4eb (patch)
tree61e971c25dba7a3ea42f638393a32dc8b2438742 /libcxx
parent258f9357ef613372d5b5f96d0a9f7f98173dbc3e (diff)
downloadbcm5719-llvm-ba65d61767db168c4f2350357307b4577ff7f4eb.tar.gz
bcm5719-llvm-ba65d61767db168c4f2350357307b4577ff7f4eb.zip
[tests] Accept XFAIL arguments that match any part of a feature.
llvm-svn: 174469
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/lit.cfg7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg
index 0c74a7d0f08..d48872c452d 100644
--- a/libcxx/test/lit.cfg
+++ b/libcxx/test/lit.cfg
@@ -21,9 +21,10 @@ def isExpectedFail(test, xfails):
if item == '*':
return True
- # If this is an exact match for one of the features, it fails.
- if item in test.config.available_features:
- return True
+ # If this is a part of any of the features, it fails.
+ for feature in test.config.available_features:
+ if item in feature:
+ return True
# If this is a part of the target triple, it fails.
if item in test.suite.config.target_triple:
OpenPOWER on IntegriCloud