diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-07-12 13:24:46 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-07-12 13:24:46 +0000 |
commit | 103b8238dc4b30aeeb99afc87e3a48184f2314d7 (patch) | |
tree | ba35cc96b67dfca2b3dfcf2863f5c691009d5a46 /test/Verifier | |
parent | ec26641b79305304fcb6d5f0d3091797695843ed (diff) |
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
Diffstat (limited to 'test/Verifier')
-rw-r--r-- | test/Verifier/2004-05-21-SwitchConstantMismatch.ll | 2 | ||||
-rw-r--r-- | test/Verifier/2007-12-21-InvokeParamAttrs.ll | 2 | ||||
-rw-r--r-- | test/Verifier/2008-01-11-VarargAttrs.ll | 2 | ||||
-rw-r--r-- | test/Verifier/2009-05-29-InvokeResult1.ll | 2 | ||||
-rw-r--r-- | test/Verifier/2009-05-29-InvokeResult2.ll | 2 | ||||
-rw-r--r-- | test/Verifier/2009-05-29-InvokeResult3.ll | 2 | ||||
-rw-r--r-- | test/Verifier/byval-1.ll | 2 | ||||
-rw-r--r-- | test/Verifier/gcread-ptrptr.ll | 2 | ||||
-rw-r--r-- | test/Verifier/gcroot-alloca.ll | 2 | ||||
-rw-r--r-- | test/Verifier/gcroot-meta.ll | 2 | ||||
-rw-r--r-- | test/Verifier/gcroot-ptrptr.ll | 2 | ||||
-rw-r--r-- | test/Verifier/gcwrite-ptrptr.ll | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll index 339a21cac190..fea290d74c4a 100644 --- a/test/Verifier/2004-05-21-SwitchConstantMismatch.ll +++ b/test/Verifier/2004-05-21-SwitchConstantMismatch.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 diff --git a/test/Verifier/2007-12-21-InvokeParamAttrs.ll b/test/Verifier/2007-12-21-InvokeParamAttrs.ll index 709b47b33daa..c62bc0f4e190 100644 --- a/test/Verifier/2007-12-21-InvokeParamAttrs.ll +++ b/test/Verifier/2007-12-21-InvokeParamAttrs.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 declare void @foo(i8*) diff --git a/test/Verifier/2008-01-11-VarargAttrs.ll b/test/Verifier/2008-01-11-VarargAttrs.ll index af97ce647449..d3eb7c72699a 100644 --- a/test/Verifier/2008-01-11-VarargAttrs.ll +++ b/test/Verifier/2008-01-11-VarargAttrs.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 %struct = type { } diff --git a/test/Verifier/2009-05-29-InvokeResult1.ll b/test/Verifier/2009-05-29-InvokeResult1.ll index bb815b3bfe15..38679f4c49fc 100644 --- a/test/Verifier/2009-05-29-InvokeResult1.ll +++ b/test/Verifier/2009-05-29-InvokeResult1.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 declare i32 @v() diff --git a/test/Verifier/2009-05-29-InvokeResult2.ll b/test/Verifier/2009-05-29-InvokeResult2.ll index 900b1d827bf4..92a51d71efe6 100644 --- a/test/Verifier/2009-05-29-InvokeResult2.ll +++ b/test/Verifier/2009-05-29-InvokeResult2.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 declare i32 @v() diff --git a/test/Verifier/2009-05-29-InvokeResult3.ll b/test/Verifier/2009-05-29-InvokeResult3.ll index 050de4669d35..3fff219cab7d 100644 --- a/test/Verifier/2009-05-29-InvokeResult3.ll +++ b/test/Verifier/2009-05-29-InvokeResult3.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 declare i32 @v() diff --git a/test/Verifier/byval-1.ll b/test/Verifier/byval-1.ll index 9bbead086114..9d09a0ffb117 100644 --- a/test/Verifier/byval-1.ll +++ b/test/Verifier/byval-1.ll @@ -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) diff --git a/test/Verifier/gcread-ptrptr.ll b/test/Verifier/gcread-ptrptr.ll index 4ed22fa6c24e..f8b21bfb4c93 100644 --- a/test/Verifier/gcread-ptrptr.ll +++ b/test/Verifier/gcread-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-alloca.ll b/test/Verifier/gcroot-alloca.ll index 8caa4b9f58b5..775bde78250e 100644 --- a/test/Verifier/gcroot-alloca.ll +++ b/test/Verifier/gcroot-alloca.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-meta.ll b/test/Verifier/gcroot-meta.ll index 1836f61c7ad6..26f7b5156294 100644 --- a/test/Verifier/gcroot-meta.ll +++ b/test/Verifier/gcroot-meta.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcroot-ptrptr.ll b/test/Verifier/gcroot-ptrptr.ll index b573295e3e94..8d7557d75a49 100644 --- a/test/Verifier/gcroot-ptrptr.ll +++ b/test/Verifier/gcroot-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 ; PR1633 %meta = type { i8* } diff --git a/test/Verifier/gcwrite-ptrptr.ll b/test/Verifier/gcwrite-ptrptr.ll index 1f60becc3327..dec1e6bcd334 100644 --- a/test/Verifier/gcwrite-ptrptr.ll +++ b/test/Verifier/gcwrite-ptrptr.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >& /dev/null +; RUN: not llvm-as < %s > /dev/null 2>&1 ; PR1633 %meta = type { i8* } |