1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

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

llvm-svn: 307789
This commit is contained in:
Kamil Rytarowski 2017-07-12 13:24:46 +00:00
parent b8e8932e7b
commit a973e7a418
22 changed files with 22 additions and 23 deletions

View File

@ -1,4 +1,4 @@
; RUN: opt -basicaa -aa-eval -disable-output < %s >& /dev/null
; RUN: opt -basicaa -aa-eval -disable-output < %s > /dev/null 2>&1
; BasicAA shouldn't infinitely recurse on the use-def cycles in
; unreachable code.

View File

@ -1,8 +1,7 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
void %test() {
%X = add int 0, 1
%X = add int 1, 2
ret void
}

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare i32 @atoi(i8*) nounwind readonly
declare i32 @atoi(i8*)

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
%list = type { i32, %list* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
%list = type { i32, %list* }
%meta = type opaque

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
%list = type { i32, %list* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare void @llvm.gcroot(i8**, i8*) nounwind

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare void @llvm.gcroot(i8**, i8*)

View File

@ -1,6 +1,6 @@
; Call graph construction crash: Not handling indirect calls right
;
; RUN: opt < %s -analyze -print-callgraph >& /dev/null
; RUN: opt < %s -analyze -print-callgraph > /dev/null 2>&1
;
%FunTy = type i32 (i32)

View File

@ -1,4 +1,4 @@
// RUN: not llvm-tblgen < %s >& /dev/null
// RUN: not llvm-tblgen < %s > /dev/null 2>&1
def x;

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare void @foo(i8*)

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
%struct = type { }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare i32 @v()

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare i32 @v()

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare i32 @v()

View File

@ -1,2 +1,2 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
declare void @h(i32 byval %num)

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
; PR1633
%meta = type { i8* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
; PR1633
%meta = type { i8* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
; PR1633
%meta = type { i8* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
; PR1633
%meta = type { i8* }

View File

@ -1,4 +1,4 @@
; RUN: not llvm-as < %s >& /dev/null
; RUN: not llvm-as < %s > /dev/null 2>&1
; PR1633
%meta = type { i8* }