diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-08-28 22:17:28 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-08-28 22:17:28 +0000 |
commit | 16c509aaac76da4df8e40879d97469c984a685e9 (patch) | |
tree | 89214394d2238f0990f8427b195b2bd361c03e1c | |
parent | df5783b7a5a38535f3eca15f571c2072f367245c (diff) | |
download | bcm5719-llvm-16c509aaac76da4df8e40879d97469c984a685e9.tar.gz bcm5719-llvm-16c509aaac76da4df8e40879d97469c984a685e9.zip |
lit: Match UNSUPPORTED against target triple as we do for XFAIL.
llvm-svn: 246343
-rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index 610d442e756..1fa43b394f7 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/utils/lit/lit/TestRunner.py @@ -544,6 +544,13 @@ def parseIntegratedTestScript(test, normalize_slashes=False, return lit.Test.Result(Test.UNSUPPORTED, "Test is unsupported with the following features: %s" % msg) + unsupported_targets = [f for f in unsupported + if f in test.suite.config.target_triple] + if unsupported_targets: + return lit.Test.Result(Test.UNSUPPORTED, + "Test is unsupported with the following triple: %s" % ( + test.suite.config.target_triple,)) + if test.config.limit_to_features: # Check that we have one of the limit_to_features features in requires. limit_to_features_tests = [f for f in test.config.limit_to_features |