aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen
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/TableGen
parentec26641b79305304fcb6d5f0d3091797695843ed (diff)
downloadllvm-103b8238dc4b30aeeb99afc87e3a48184f2314d7.tar.gz
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/TableGen')
-rw-r--r--test/TableGen/UnterminatedComment.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TableGen/UnterminatedComment.td b/test/TableGen/UnterminatedComment.td
index f92525a9916..f386e4cef83 100644
--- a/test/TableGen/UnterminatedComment.td
+++ b/test/TableGen/UnterminatedComment.td
@@ -1,4 +1,4 @@
-// RUN: not llvm-tblgen < %s >& /dev/null
+// RUN: not llvm-tblgen < %s > /dev/null 2>&1
def x;