The canonical way to XFAIL a test for all targets is XFAIL: *, not XFAIL:
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 4 Feb 2016 16:21:38 +0000 (16:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 4 Feb 2016 16:21:38 +0000 (16:21 +0000)
Fix the lit bug that enabled this "feature" (empty triple is substring
of all possible target triples) and change the two outliers to use the
documented * syntax.

llvm-svn: 259799

llvm/test/CodeGen/Hexagon/struct_args_large.ll
llvm/test/Transforms/Util/MemorySSA/load-invariant.ll
llvm/utils/lit/lit/Test.py

index 1438d73..fb4780b 100644 (file)
@@ -1,4 +1,4 @@
-; XFAIL:
+; XFAIL: *
 ; RUN: llc -march=hexagon < %s | FileCheck %s
 ; CHECK: r[[T0:[0-9]+]] = CONST32(#s2)
 ; CHECK: memw(r29+#0) = r{{.}}
index 2350346..188a4c4 100644 (file)
@@ -1,4 +1,4 @@
-; XFAIL:
+; XFAIL: *
 ; RUN: opt -basicaa -print-memoryssa -verify-memoryssa -analyze < %s 2>&1 | FileCheck %s
 ;
 ; Invariant loads should be considered live on entry, because, once the
index ef0e7bf..fd02a54 100644 (file)
@@ -230,7 +230,7 @@ class Test:
                 return True
 
             # If this is a part of the target triple, it fails.
-            if item in self.suite.config.target_triple:
+            if item and item in self.suite.config.target_triple:
                 return True
 
         return False