From: Peter Collingbourne Date: Fri, 28 Aug 2015 22:17:28 +0000 (+0000) Subject: lit: Match UNSUPPORTED against target triple as we do for XFAIL. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4fda724f0378b38611d8d6b874aea531f4bcd057;p=oota-llvm.git lit: Match UNSUPPORTED against target triple as we do for XFAIL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246343 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index 610d442e756..1fa43b394f7 100644 --- a/utils/lit/lit/TestRunner.py +++ b/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