For all RUN lines starting with "not", redirect stderr to /dev/null so tests
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 12:57:32 +0000 (12:57 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 12:57:32 +0000 (12:57 +0000)
don't fail when (expected) error output is produced. This fixes 17 tests.

While I was there, I also made all RUN lines of the form "not llvm-as..." a bit
more consistent, they now all redirect stderr and stdout to /dev/null and use
input redirect to read their input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52174 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
test/Assembler/2003-11-11-ImplicitRename.ll
test/Assembler/2007-11-26-AttributeOverload.ll
test/CodeGen/Generic/GC/badreadproto.ll
test/CodeGen/Generic/GC/badrootproto.ll
test/CodeGen/Generic/GC/badwriteproto.ll
test/CodeGen/Generic/GC/outside.ll
test/TableGen/BitsInitOverflow.td
test/TableGen/UnterminatedComment.td
test/Verifier/2004-05-21-SwitchConstantMismatch.ll
test/Verifier/2007-12-21-InvokeParamAttrs.ll
test/Verifier/2008-01-11-VarargAttrs.ll
test/Verifier/byval-1.ll
test/Verifier/gcread-ptrptr.ll
test/Verifier/gcroot-alloca.ll
test/Verifier/gcroot-meta.ll
test/Verifier/gcroot-ptrptr.ll
test/Verifier/gcwrite-ptrptr.ll

index 0f858b417cc00c719c44d3cd73897470a26c6348..7bfd3c14bf194de91309dc856093d8d04bd49403 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s > /dev/null
+; RUN: not llvm-as < %s >& /dev/null
 
 void %test() {
   %X = add int 0, 1
index 9aec8d951096540bf667260fe8a318819e307543..aebc2e8d01e5f79ae6ecd01ac4d5d7eb74708ec9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
 declare i32 @atoi(i8*) nounwind readonly
 declare i32 @atoi(i8*)
index 8568ba41d2441f5f0855a151dc3688db2ef54ab8..4fe90b90833a15c615a1ab8f080f479fc8ddbe0f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
        %list = type { i32, %list* }
 
index 1b9d856c53782e393ae3e1fca48b1a499fd8f4b8..ff86d03c646a2fed824b2d02eccb279836a81c5c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
        %list = type { i32, %list* }
        %meta = type opaque
index 3682fc425b5b7f7039e83cd51b2bf8ee1c679a20..be81f842672e12cb8887434fd024e54f0d63b8d5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
        %list = type { i32, %list* }
 
index 122bfe4a47bcc04334d93e5233bfc931bc266f93..2968c6917ce14686f33ef89a00c77e5fbe7fa7ef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
 declare void @llvm.gcroot(i8**, i8*)
 
index c0b5da90dd854adf506b879f36df1ce3baaccb0f..076b3f6f73eb407f808783251eda77205dc99aa7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: not tblgen %s
+// RUN: not tblgen %s 2> /dev/null
 
 def {
   bits<2> X = 5;  // bitfield is too small, reject
index 7f449c4f8e5e186d44ad4de772939aba31b5bbc1..158cede2607a97dcfdb3c7279fc0527ecd9b0f61 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: not tblgen < %s
+// RUN: not tblgen < %s >& /dev/null
 
 def x;
 
index e965c6dac9212f3a3648de270e9319a48b86b64a..339a21cac19073710537188f46f0a8f5eaa22bd1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as -f %s -o /dev/null
+; RUN: not llvm-as < %s >& /dev/null
 
 
 
index 5a8fa65dbc32be6c00d2dd8a88d0dbd0364eb9c4..709b47b33daa1e7511adf6133d95171ec0964d0d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 
 declare void @foo(i8*)
 
index e44a94b63b1006a7f6cb4522adc24c960cd5a130..b6ce6251cfc6c9b3c75f3cf3858ae2c9c51ab0c8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as %s -o /dev/null
+; RUN: not llvm-as < %s >& /dev/null
 
        %struct = type {  }
 
index 01207e757c215a66e1af7489a1977657116d73ca..9bbead08611462c755874cb8e25f3575b3c7b469 100644 (file)
@@ -1,2 +1,2 @@
-; RUN: not llvm-as %s -o /dev/null -f
+; RUN: not llvm-as < %s >& /dev/null
 declare void @h(i32 byval %num)
index bcfc6eb4f71c5f6a7fdeb2ac90cd27af848f98db..4ed22fa6c24ec0256550cbab346c08474269efa8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 ; PR1633
 
 %meta = type { i8* }
index c44321a065b024984d68fbfc0b6e33757553fe45..8caa4b9f58b56cc98d05dfce8b42639ed4105bd8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 ; PR1633
 
 %meta = type { i8* }
index 51d19515afbf68eaee9500a5029f3933328b37ce..1836f61c7ad6d7eea4092b4428c32175a4860748 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 ; PR1633
 
 %meta = type { i8* }
index 0a7738d866c2f785062dd623d1bbbe3d59c8fa25..b573295e3e94ff9098c9658f132dcd2d70d3a1ee 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 ; PR1633
 
 %meta = type { i8* }
index b1e96c8aa6ea5c239b269677eac673c7f9f2ab69..1f60becc332712f3236c887a327085f8e3b9b387 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
 ; PR1633
 
 %meta = type { i8* }