llvm.org GIT mirror llvm / 103b823
Make shell redirection construct portable Summary: NetBSD shell sh(1) does not support ">& /dev/null" construct. This is bashism. The portable and POSIX solution is to use: "> /dev/null 2>&1". This change fixes 22 Unexpected Failures on NetBSD/amd64 for the "check-llvm" target. Sponsored by <The NetBSD Foundation> Reviewers: joerg, dim, rnk Reviewed By: joerg, rnk Subscribers: rnk, davide, llvm-commits Differential Revision: https://reviews.llvm.org/D35277 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307789 91177308-0d34-0410-b5e6-96231b3b80d8 Kamil Rytarowski 2 years ago
22 changed file(s) with 22 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt -basicaa -aa-eval -disable-output < %s >& /dev/null
0 ; RUN: opt -basicaa -aa-eval -disable-output < %s > /dev/null 2>&1
11
22 ; BasicAA shouldn't infinitely recurse on the use-def cycles in
33 ; unreachable code.
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 void %test() {
33 %X = add int 0, 1
44 %X = add int 1, 2
55 ret void
66 }
7
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare i32 @atoi(i8*) nounwind readonly
33 declare i32 @atoi(i8*)
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 %list = type { i32, %list* }
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 %list = type { i32, %list* }
33 %meta = type opaque
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 %list = type { i32, %list* }
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare void @llvm.gcroot(i8**, i8*) nounwind
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare void @llvm.gcroot(i8**, i8*)
33
0 ; Call graph construction crash: Not handling indirect calls right
11 ;
2 ; RUN: opt < %s -analyze -print-callgraph >& /dev/null
2 ; RUN: opt < %s -analyze -print-callgraph > /dev/null 2>&1
33 ;
44
55 %FunTy = type i32 (i32)
None // RUN: not llvm-tblgen < %s >& /dev/null
0 // RUN: not llvm-tblgen < %s > /dev/null 2>&1
11
22 def x;
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare void @foo(i8*)
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 %struct = type { }
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare i32 @v()
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare i32 @v()
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11
22 declare i32 @v()
33
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 declare void @h(i32 byval %num)
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 ; PR1633
22
33 %meta = type { i8* }
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 ; PR1633
22
33 %meta = type { i8* }
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 ; PR1633
22
33 %meta = type { i8* }
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 ; PR1633
22
33 %meta = type { i8* }
None ; RUN: not llvm-as < %s >& /dev/null
0 ; RUN: not llvm-as < %s > /dev/null 2>&1
11 ; PR1633
22
33 %meta = type { i8* }