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 | cce21c1dfe9d7ca85cb0c3c6f534723afb95a857 (patch) | |
| tree | 54fb1bbefae1b60b40e44a7f8085dc3f9eb9d918 /llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll | |
| parent | 97cc28311742a57c982e6f91f39869d56278db67 (diff) | |
| download | bcm5719-llvm-cce21c1dfe9d7ca85cb0c3c6f534723afb95a857.tar.gz bcm5719-llvm-cce21c1dfe9d7ca85cb0c3c6f534723afb95a857.zip | |
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
Diffstat (limited to 'llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll')
| -rw-r--r-- | llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll b/llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll index 339a21cac19..fea290d74c4 100644 --- a/llvm/test/Verifier/2004-05-21-SwitchConstantMismatch.ll +++ b/llvm/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 |

