lit: Match UNSUPPORTED against target triple as we do for XFAIL.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 28 Aug 2015 22:17:28 +0000 (22:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 28 Aug 2015 22:17:28 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246343 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestRunner.py

index 610d442e75622ef518acdfe4fe70f99138f0327a..1fa43b394f72c0ba7653255a3206f92bd51198f3 100644 (file)
@@ -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