[llvm] r246343 - lit: Match UNSUPPORTED against target triple as we do for XFAIL.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 15:17:28 PDT 2015


Author: pcc
Date: Fri Aug 28 17:17:28 2015
New Revision: 246343

URL: http://llvm.org/viewvc/llvm-project?rev=246343&view=rev
Log:
lit: Match UNSUPPORTED against target triple as we do for XFAIL.

Modified:
    llvm/trunk/utils/lit/lit/TestRunner.py

Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=246343&r1=246342&r2=246343&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Aug 28 17:17:28 2015
@@ -544,6 +544,13 @@ def parseIntegratedTestScript(test, norm
         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




More information about the llvm-commits mailing list