summaryrefslogtreecommitdiff
path: root/test/Other
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
commit103b8238dc4b30aeeb99afc87e3a48184f2314d7 (patch)
treeba35cc96b67dfca2b3dfcf2863f5c691009d5a46 /test/Other
parentec26641b79305304fcb6d5f0d3091797695843ed (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/Other')
-rw-r--r--test/Other/2002-01-31-CallGraph.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Other/2002-01-31-CallGraph.ll b/test/Other/2002-01-31-CallGraph.ll
index 0e4c8775126..d4819357ac6 100644
--- a/test/Other/2002-01-31-CallGraph.ll
+++ b/test/Other/2002-01-31-CallGraph.ll
@@ -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)