Use ignore & grep instead of XFAIL.
authorMikhail Glushenkov <foldr@codedgers.com>
Sun, 21 Dec 2008 07:47:49 +0000 (07:47 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Sun, 21 Dec 2008 07:47:49 +0000 (07:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61307 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLVMC/TestWarnings.td

index cd4609a6ce2f7641eaa75e89a85a80056832d5ef..bf2173c7938d10a8815b399a421fcc797acd2248 100644 (file)
@@ -1,9 +1,7 @@
 // Check that the compiler warns about unused options.
 // This should fail because the output is printed on stderr.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
-// XFAIL: *
+// RUN: ignore tblgen -I $srcroot/include --gen-llvmc %s |& grep "option '-Wall' has no effect!"
 
 include "llvm/CompilerDriver/Common.td"
 
-def OptList : OptionList<[(extern_switch "Wall"),
-    (extern_parameter "std"), (extern_list "L")]>;
+def OptList : OptionList<[(switch_option "Wall", (extern))]>;