Let some more tests ignore expected output on stderr.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 15:04:14 +0000 (15:04 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 15:04:14 +0000 (15:04 +0000)
Also, use > %t instead of -o %t for output in one test since that also works
when %t already exists.

This fixes 6 testcases.

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

test/Other/2007-06-05-PassID.ll
test/Other/invalid-commandline-option.ll
test/Transforms/BlockPlacement/basictest.ll
test/Transforms/Inline/basictest.ll
test/Transforms/Internalize/2008-05-09-AllButMain.ll
test/Transforms/Reassociate/mulfactor2.ll

index 25923a5d86bf69c9019f0a27c3d4e317b8ff8ae1..81e9ef6f791becae2558053387ade251031cea0a 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llvm-as < %s | opt -analyze -print-cfg-only -disable-output
+;RUN: llvm-as < %s | opt -analyze -print-cfg-only -disable-output 2>/dev/null
 ;PR 1497
 
 define void @foo() {
index b74c49857e35bf42cee8ebe0e8f18df98f1d903d..cef09b9b6bbc4eda9a095e2bbd80290f40fae2cd 100644 (file)
@@ -1,3 +1,3 @@
-; RUN: llvm-as < /dev/null | not opt --foo > /dev/null
+; RUN: llvm-as < /dev/null | not opt --foo >& /dev/null
 
 ; there is no --foo
index c93d129ff2a15881a4fc5b77665c42632de91bf1..e7755cf6ebe58d295689aefd375c3d1d1e8fe1db 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -block-placement -disable-output -print
+; RUN: llvm-as < %s | opt -block-placement -disable-output -print 2> /dev/null
 
 define i32 @test() {
         br i1 true, label %X, label %Y
index f34d1648a701ab6dfb78269d1f52b3579a96ce3a..59cacb619316b5892b5460c14e48283eb438a2c1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -inline -disable-output -print
+; RUN: llvm-as < %s | opt -inline -disable-output -print 2> /dev/null
 
 define i32 @func(i32 %i) {
         ret i32 %i
index a7c7a1c63165543d76c335faa06560c8ade02e89..6ba5cb985ab94cdd820f4d8202f96ba649d8d59e 100644 (file)
@@ -3,8 +3,8 @@
 ; Internalize all but foo and j
 ; RUN: llvm-as < %s | opt -internalize -internalize-public-api-list foo -internalize-public-api-list j | llvm-dis | grep internal | count 3
 ; Non existent files should be treated as if they were empty (so internalize all but main)
-; RUN: llvm-as < %s | opt -internalize -internalize-public-api-file /nonexistent/file | llvm-dis | grep internal | count 4
-; RUN: llvm-as < %s | opt -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file | llvm-dis | grep internal | count 3
+; RUN: llvm-as < %s | opt -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null | llvm-dis | grep internal | count 4
+; RUN: llvm-as < %s | opt -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null | llvm-dis | grep internal | count 3
 ; -file and -list options should be merged, the .apifile contains foo and j
 ; RUN: llvm-as < %s | opt -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile | llvm-dis | grep internal | count 2
 
index 11fe2e04084e2ef6e11e85f5043093948c6c56e5..62a890b90b68f39da17f6f490cc122e1ae7c7672 100644 (file)
@@ -1,7 +1,7 @@
 ; This should turn into one multiply and one add.
 
 ; RUN: llvm-as < %s | \
-; RUN:   opt -instcombine -reassociate -instcombine | llvm-dis -o %t 
+; RUN:   opt -instcombine -reassociate -instcombine | llvm-dis > %t 
 ; RUN: grep mul %t | count 1
 ; RUN: grep add %t | count 1