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
-; RUN: not llvm-as < %s > /dev/null
+; RUN: not llvm-as < %s >& /dev/null
void %test() {
%X = add int 0, 1
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
declare i32 @atoi(i8*) nounwind readonly
declare i32 @atoi(i8*)
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
%list = type { i32, %list* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
%list = type { i32, %list* }
%meta = type opaque
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
%list = type { i32, %list* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
declare void @llvm.gcroot(i8**, i8*)
-// RUN: not tblgen %s
+// RUN: not tblgen %s 2> /dev/null
def {
bits<2> X = 5; // bitfield is too small, reject
-// RUN: not tblgen < %s
+// RUN: not tblgen < %s >& /dev/null
def x;
-; RUN: not llvm-as -f %s -o /dev/null
+; RUN: not llvm-as < %s >& /dev/null
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
declare void @foo(i8*)
-; RUN: not llvm-as %s -o /dev/null
+; RUN: not llvm-as < %s >& /dev/null
%struct = type { }
-; RUN: not llvm-as %s -o /dev/null -f
+; RUN: not llvm-as < %s >& /dev/null
declare void @h(i32 byval %num)
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
; PR1633
%meta = type { i8* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
; PR1633
%meta = type { i8* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
; PR1633
%meta = type { i8* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
; PR1633
%meta = type { i8* }
-; RUN: not llvm-as < %s
+; RUN: not llvm-as < %s >& /dev/null
; PR1633
%meta = type { i8* }