summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-07-12 13:24:46 +0000
committerKamil Rytarowski <n54@gmx.com>2017-07-12 13:24:46 +0000
commitcce21c1dfe9d7ca85cb0c3c6f534723afb95a857 (patch)
tree54fb1bbefae1b60b40e44a7f8085dc3f9eb9d918 /llvm/test/Assembler
parent97cc28311742a57c982e6f91f39869d56278db67 (diff)
downloadbcm5719-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/Assembler')
-rw-r--r--llvm/test/Assembler/2003-11-11-ImplicitRename.ll3
-rw-r--r--llvm/test/Assembler/2007-11-26-AttributeOverload.ll2
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Assembler/2003-11-11-ImplicitRename.ll b/llvm/test/Assembler/2003-11-11-ImplicitRename.ll
index 7bfd3c14bf1..84065a17846 100644
--- a/llvm/test/Assembler/2003-11-11-ImplicitRename.ll
+++ b/llvm/test/Assembler/2003-11-11-ImplicitRename.ll
@@ -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
}
-
diff --git a/llvm/test/Assembler/2007-11-26-AttributeOverload.ll b/llvm/test/Assembler/2007-11-26-AttributeOverload.ll
index aebc2e8d01e..ab5d514a38b 100644
--- a/llvm/test/Assembler/2007-11-26-AttributeOverload.ll
+++ b/llvm/test/Assembler/2007-11-26-AttributeOverload.ll
@@ -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*)
OpenPOWER on IntegriCloud