Redirect stderr to /dev/null. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Sep 2016 17:02:38 +0000 (17:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Sep 2016 17:02:38 +0000 (17:02 +0000)
Makes the error output less confusing when this test fails.

llvm-svn: 281985

lld/test/ELF/linkerscript/linkerscript.s

index 4ee7416..29e5428 100644 (file)
 # RUN: llvm-readobj %t2 > /dev/null
 
 # RUN: echo "GROUP(\"%t\" libxyz.a )" > %t.script
-# RUN: not ld.lld -o %t2 %t.script
+# RUN: not ld.lld -o %t2 %t.script 2>/dev/null
 # RUN: ld.lld -o %t2 %t.script -L%t.dir
 # RUN: llvm-readobj %t2 > /dev/null
 
 # RUN: echo "GROUP(\"%t\" =libxyz.a )" > %t.script
-# RUN: not ld.lld -o %t2 %t.script
+# RUN: not ld.lld -o %t2 %t.script  2>/dev/null
 # RUN: ld.lld -o %t2 %t.script --sysroot=%t.dir
 # RUN: llvm-readobj %t2 > /dev/null
 
 # RUN: echo "GROUP(\"%t\" -lxyz )" > %t.script
-# RUN: not ld.lld -o %t2 %t.script
+# RUN: not ld.lld -o %t2 %t.script  2>/dev/null
 # RUN: ld.lld -o %t2 %t.script -L%t.dir
 # RUN: llvm-readobj %t2 > /dev/null
 
 # RUN: echo "GROUP(\"%t\" libxyz.a )" > %t.script
-# RUN: not ld.lld -o %t2 %t.script
+# RUN: not ld.lld -o %t2 %t.script  2>/dev/null
 # RUN: ld.lld -o %t2 %t.script -L%t.dir
 # RUN: llvm-readobj %t2 > /dev/null
 
 # RUN: echo "GROUP(\"%t\" /libxyz.a )" > %t.script
 # RUN: echo "GROUP(\"%t\" /libxyz.a )" > %t.dir/xyz.script
-# RUN: not ld.lld -o %t2 %t.script
-# RUN: not ld.lld -o %t2 %t.script --sysroot=%t.dir
+# RUN: not ld.lld -o %t2 %t.script 2>/dev/null
+# RUN: not ld.lld -o %t2 %t.script --sysroot=%t.dir  2>/dev/null
 # RUN: ld.lld -o %t2 %t.dir/xyz.script --sysroot=%t.dir
 # RUN: llvm-readobj %t2 > /dev/null