[lld] r353602 - [LLD][ELF] Ensure tests use -o /dev/null instead of attempting to write to the bin directory. [NFC]

David L. Jones via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 8 21:00:51 PST 2019


Author: dlj
Date: Fri Feb  8 21:00:50 2019
New Revision: 353602

URL: http://llvm.org/viewvc/llvm-project?rev=353602&view=rev
Log:
[LLD][ELF] Ensure tests use -o /dev/null instead of attempting to write to the bin directory. [NFC]

This error was introduced in r353508.

Modified:
    lld/trunk/test/ELF/archive-thin-missing-member.s

Modified: lld/trunk/test/ELF/archive-thin-missing-member.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/archive-thin-missing-member.s?rev=353602&r1=353601&r2=353602&view=diff
==============================================================================
--- lld/trunk/test/ELF/archive-thin-missing-member.s (original)
+++ lld/trunk/test/ELF/archive-thin-missing-member.s Fri Feb  8 21:00:50 2019
@@ -8,15 +8,15 @@
 # RUN: rm %t.o
 
 # Test error when loading symbols from missing thin archive member.
-# RUN: not ld.lld %t-no-syms.a 2>&1 | FileCheck %s --check-prefix=ERR1
+# RUN: not ld.lld %t-no-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR1
 # ERR1: {{.*}}-no-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{[Nn]}}o such file or directory
 
 # Test error when thin archive has symbol table but member is missing.
-# RUN: not ld.lld -m elf_amd64_fbsd %t-syms.a 2>&1 | FileCheck %s --check-prefix=ERR2
+# RUN: not ld.lld -m elf_amd64_fbsd %t-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
 # ERR2: {{.*}}-syms.a: could not get the buffer for the member defining symbol _start: '{{.*}}.o': {{[Nn]}}o such file or directory
 
 # Test error when thin archive is linked using --whole-archive but member is missing.
-# RUN: not ld.lld --whole-archive %t-syms.a 2>&1 | FileCheck %s --check-prefix=ERR3
+# RUN: not ld.lld --whole-archive %t-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR3
 # ERR3: {{.*}}-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{[Nn]}}o such file or directory
 
 .global _start




More information about the llvm-commits mailing list