From c638fe5b8b72ab363d1370cd764fd1c1256b74b7 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 10 Jun 2008 12:57:32 +0000 Subject: [PATCH] For all RUN lines starting with "not", redirect stderr to /dev/null so tests 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. llvm-svn: 52174 --- test/Assembler/2003-11-11-ImplicitRename.ll | 2 +- test/Assembler/2007-11-26-AttributeOverload.ll | 2 +- test/CodeGen/Generic/GC/badreadproto.ll | 2 +- test/CodeGen/Generic/GC/badrootproto.ll | 2 +- test/CodeGen/Generic/GC/badwriteproto.ll | 2 +- test/CodeGen/Generic/GC/outside.ll | 2 +- test/TableGen/BitsInitOverflow.td | 2 +- test/TableGen/UnterminatedComment.td | 2 +- test/Verifier/2004-05-21-SwitchConstantMismatch.ll | 2 +- test/Verifier/2007-12-21-InvokeParamAttrs.ll | 2 +- test/Verifier/2008-01-11-VarargAttrs.ll | 2 +- test/Verifier/byval-1.ll | 2 +- test/Verifier/gcread-ptrptr.ll | 2 +- test/Verifier/gcroot-alloca.ll | 2 +- test/Verifier/gcroot-meta.ll | 2 +- test/Verifier/gcroot-ptrptr.ll | 2 +- test/Verifier/gcwrite-ptrptr.ll | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/Assembler/2003-11-11-ImplicitRename.ll b/test/Assembler/2003-11-11-ImplicitRename.ll index 0f858b417cc..7bfd3c14bf1 100644 --- a/test/Assembler/2003-11-11-ImplicitRename.ll +++ b/test/Assembler/2003-11-11-ImplicitRename.ll @@ -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 diff --git a/test/Assembler/2007-11-26-AttributeOverload.ll b/test/Assembler/2007-11-26-AttributeOverload.ll index 9aec8d95109..aebc2e8d01e 100644 --- a/test/Assembler/2007-11-26-AttributeOverload.ll +++ b/test/Assembler/2007-11-26-AttributeOverload.ll @@ -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*) diff --git a/test/CodeGen/Generic/GC/badreadproto.ll b/test/CodeGen/Generic/GC/badreadproto.ll index 8568ba41d24..4fe90b90833 100644 --- a/test/CodeGen/Generic/GC/badreadproto.ll +++ b/test/CodeGen/Generic/GC/badreadproto.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null %list = type { i32, %list* } diff --git a/test/CodeGen/Generic/GC/badrootproto.ll b/test/CodeGen/Generic/GC/badrootproto.ll index 1b9d856c537..ff86d03c646 100644 --- a/test/CodeGen/Generic/GC/badrootproto.ll +++ b/test/CodeGen/Generic/GC/badrootproto.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null %list = type { i32, %list* } %meta = type opaque diff --git a/test/CodeGen/Generic/GC/badwriteproto.ll b/test/CodeGen/Generic/GC/badwriteproto.ll index 3682fc425b5..be81f842672 100644 --- a/test/CodeGen/Generic/GC/badwriteproto.ll +++ b/test/CodeGen/Generic/GC/badwriteproto.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null %list = type { i32, %list* } diff --git a/test/CodeGen/Generic/GC/outside.ll b/test/CodeGen/Generic/GC/outside.ll index 122bfe4a47b..2968c6917ce 100644 --- a/test/CodeGen/Generic/GC/outside.ll +++ b/test/CodeGen/Generic/GC/outside.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null declare void @llvm.gcroot(i8**, i8*) diff --git a/test/TableGen/BitsInitOverflow.td b/test/TableGen/BitsInitOverflow.td index c0b5da90dd8..076b3f6f73e 100644 --- a/test/TableGen/BitsInitOverflow.td +++ b/test/TableGen/BitsInitOverflow.td @@ -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 diff --git a/test/TableGen/UnterminatedComment.td b/test/TableGen/UnterminatedComment.td index 7f449c4f8e5..158cede2607 100644 --- a/test/TableGen/UnterminatedComment.td +++ b/test/TableGen/UnterminatedComment.td @@ -1,4 +1,4 @@ -// RUN: not tblgen < %s +// RUN: not tblgen < %s >& /dev/null def x; diff --git a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll index e965c6dac92..339a21cac19 100644 --- a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll +++ b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as -f %s -o /dev/null +; RUN: not llvm-as < %s >& /dev/null diff --git a/test/Verifier/2007-12-21-InvokeParamAttrs.ll b/test/Verifier/2007-12-21-InvokeParamAttrs.ll index 5a8fa65dbc3..709b47b33da 100644 --- a/test/Verifier/2007-12-21-InvokeParamAttrs.ll +++ b/test/Verifier/2007-12-21-InvokeParamAttrs.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null declare void @foo(i8*) diff --git a/test/Verifier/2008-01-11-VarargAttrs.ll b/test/Verifier/2008-01-11-VarargAttrs.ll index e44a94b63b1..b6ce6251cfc 100644 --- a/test/Verifier/2008-01-11-VarargAttrs.ll +++ b/test/Verifier/2008-01-11-VarargAttrs.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null +; RUN: not llvm-as < %s >& /dev/null %struct = type { } diff --git a/test/Verifier/byval-1.ll b/test/Verifier/byval-1.ll index 01207e757c2..9bbead08611 100644 --- a/test/Verifier/byval-1.ll +++ b/test/Verifier/byval-1.ll @@ -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) diff --git a/test/Verifier/gcread-ptrptr.ll b/test/Verifier/gcread-ptrptr.ll index bcfc6eb4f71..4ed22fa6c24 100644 --- a/test/Verifier/gcread-ptrptr.ll +++ b/test/Verifier/gcread-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-alloca.ll b/test/Verifier/gcroot-alloca.ll index c44321a065b..8caa4b9f58b 100644 --- a/test/Verifier/gcroot-alloca.ll +++ b/test/Verifier/gcroot-alloca.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-meta.ll b/test/Verifier/gcroot-meta.ll index 51d19515afb..1836f61c7ad 100644 --- a/test/Verifier/gcroot-meta.ll +++ b/test/Verifier/gcroot-meta.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-ptrptr.ll b/test/Verifier/gcroot-ptrptr.ll index 0a7738d866c..b573295e3e9 100644 --- a/test/Verifier/gcroot-ptrptr.ll +++ b/test/Verifier/gcroot-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcwrite-ptrptr.ll b/test/Verifier/gcwrite-ptrptr.ll index b1e96c8aa6e..1f60becc332 100644 --- a/test/Verifier/gcwrite-ptrptr.ll +++ b/test/Verifier/gcwrite-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s +; RUN: not llvm-as < %s >& /dev/null ; PR1633 %meta = type { i8* }