[PATCH] D35277: Make shell redirection construct portable

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 14:30:31 PDT 2017


krytarowski created this revision.

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>


Repository:
  rL LLVM

https://reviews.llvm.org/D35277

Files:
  test/Analysis/BasicAA/unreachable-block.ll
  test/Assembler/2007-11-26-AttributeOverload.ll
  test/CodeGen/X86/GC/badreadproto.ll
  test/CodeGen/X86/GC/badrootproto.ll
  test/CodeGen/X86/GC/badwriteproto.ll
  test/CodeGen/X86/GC/fat.ll
  test/CodeGen/X86/GC/outside.ll
  test/Other/2002-01-31-CallGraph.ll
  test/TableGen/UnterminatedComment.td
  test/Verifier/2004-05-21-SwitchConstantMismatch.ll
  test/Verifier/2007-12-21-InvokeParamAttrs.ll
  test/Verifier/2008-01-11-VarargAttrs.ll
  test/Verifier/2009-05-29-InvokeResult1.ll
  test/Verifier/2009-05-29-InvokeResult2.ll
  test/Verifier/2009-05-29-InvokeResult3.ll
  test/Verifier/byval-1.ll
  test/Verifier/gcread-ptrptr.ll
  test/Verifier/gcroot-alloca.ll
  test/Verifier/gcroot-meta.ll
  test/Verifier/gcroot-ptrptr.ll
  test/Verifier/gcwrite-ptrptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35277.106099.patch
Type: text/x-patch
Size: 6992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/19539475/attachment.bin>


More information about the llvm-commits mailing list