Use not instead of ignore when an exit status is expected to always

be non-zero.

llvm-svn: 44866
This commit is contained in:
Dan Gohman 2007-12-11 15:50:23 +00:00
parent 7be70b555b
commit 7867eefd96
7 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
; Test for PR463. This program is erroneous, but should not crash llvm-as.
; RUN: ignore llvm-as < %s -o /dev/null -f |& \
; RUN: not llvm-as < %s -o /dev/null -f |& \
; RUN: grep {Cannot create a null initialized value of this type}
@.FOO = internal global %struct.none zeroinitializer

View File

@ -1,4 +1,4 @@
; RUN: ignore llvm-as < %s -o /dev/null -f |& \
; RUN: not llvm-as < %s -o /dev/null -f |& \
; RUN: grep {LLVM functions cannot return aggregate types}
define void @test() {

View File

@ -1,4 +1,4 @@
// RUN: ignore %llvmgcc -xc %s -S -o /dev/null |& \
// RUN: not %llvmgcc -xc %s -S -o /dev/null |& \
// RUN: grep fluffy | grep 2006-09-25-DebugFilename.c
#include "2006-09-25-DebugFilename.h"
int func1() { return hfunc1(); }

View File

@ -1,4 +1,4 @@
; RUN: ignore llvm-as < %s -o /dev/null -f |& grep \
; RUN: not llvm-as < %s -o /dev/null -f |& grep \
; RUN: "Redefinition of global variable named 'B'"
; END.

View File

@ -2,7 +2,7 @@
; that error is printed out.
; RUN: llvm-as %s -o %t.one.bc -f
; RUN: llvm-as %s -o %t.two.bc -f
; RUN: ignore llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \
; RUN: not llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \
; RUN: -o %t.bc 2>%t.err
; RUN: grep "Function is already defined" %t.err

View File

@ -3,8 +3,8 @@
; RUN: llvm-as %s -o %t.foo1.bc -f
; RUN: llvm-as %s -o %t.foo2.bc -f
; RUN: echo {define void @foo(i32 %x) { ret void }} | llvm-as -o %t.foo3.bc -f
; RUN: ignore llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
; RUN: not llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
; RUN: grep {Function is already defined}
; RUN: ignore llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
; RUN: not llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
; RUN: grep {Function 'foo' defined as both}
define void @foo() { ret void }

View File

@ -1,4 +1,4 @@
; RUN: ignore llvm-as < %s > /dev/null |& \
; RUN: not llvm-as < %s > /dev/null |& \
; RUN: grep {Cannot form a pointer to a basic block}
define i32 @main() {