[lld] r336129 - [ELF] Replace unused output filenames with /dev/null in tests

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 2 10:48:24 PDT 2018


Author: maskray
Date: Mon Jul  2 10:48:23 2018
New Revision: 336129

URL: http://llvm.org/viewvc/llvm-project?rev=336129&view=rev
Log:
[ELF] Replace unused output filenames with /dev/null in tests

Post commit review at rLLD335992

Modified:
    lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s
    lld/trunk/test/ELF/aarch64-cortex-a53-843419-nopatch.s
    lld/trunk/test/ELF/aarch64-fpic-abs16.s
    lld/trunk/test/ELF/aarch64-fpic-add_abs_lo12_nc.s
    lld/trunk/test/ELF/aarch64-fpic-adr_prel_lo21.s
    lld/trunk/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s
    lld/trunk/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s
    lld/trunk/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s
    lld/trunk/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s
    lld/trunk/test/ELF/aarch64-fpic-prel16.s
    lld/trunk/test/ELF/aarch64-fpic-prel32.s
    lld/trunk/test/ELF/aarch64-fpic-prel64.s
    lld/trunk/test/ELF/aarch64-hi21-error.s
    lld/trunk/test/ELF/aarch64-ldprel-lo19-invalid.s
    lld/trunk/test/ELF/aarch64-lo12-alignment.s
    lld/trunk/test/ELF/aarch64-lo21-error.s
    lld/trunk/test/ELF/aarch64-load-alignment.s
    lld/trunk/test/ELF/amdgpu-elf-flags-err.s
    lld/trunk/test/ELF/arm-bl-v6.s
    lld/trunk/test/ELF/arm-blx-v4t.s
    lld/trunk/test/ELF/arm-thumb-interwork-thunk-range.s
    lld/trunk/test/ELF/arm-thunk-section-too-large.s
    lld/trunk/test/ELF/arm-thunk-toolargesection.s
    lld/trunk/test/ELF/arm-use-r-output.s
    lld/trunk/test/ELF/cgprofile-warn.s
    lld/trunk/test/ELF/compressed-debug-conflict.s
    lld/trunk/test/ELF/conflict-debug-variable2.s
    lld/trunk/test/ELF/conflict-variable-linkage-name.s
    lld/trunk/test/ELF/conflict.s
    lld/trunk/test/ELF/copy-in-shared.s
    lld/trunk/test/ELF/copy-rel-corrupted.s
    lld/trunk/test/ELF/copy-rel-pie-error.s
    lld/trunk/test/ELF/corrupted-version-reference.s
    lld/trunk/test/ELF/defined-tls_get_addr.s
    lld/trunk/test/ELF/dynamic-reloc-in-ro.s
    lld/trunk/test/ELF/eh-frame-dyn-rel.s
    lld/trunk/test/ELF/eh-frame-multilpe-cie.s
    lld/trunk/test/ELF/eh-frame-rel.s
    lld/trunk/test/ELF/eh-frame-value-format1.s
    lld/trunk/test/ELF/eh-frame-value-format2.s
    lld/trunk/test/ELF/eh-frame-value-format3.s
    lld/trunk/test/ELF/eh-frame-value-format4.s
    lld/trunk/test/ELF/eh-frame-value-format5.s
    lld/trunk/test/ELF/eh-frame-value-format6.s
    lld/trunk/test/ELF/empty-archive.s
    lld/trunk/test/ELF/executable-undefined-protected-ignoreall.s
    lld/trunk/test/ELF/fatal-warnings.s
    lld/trunk/test/ELF/filter.s
    lld/trunk/test/ELF/gc-absolute.s
    lld/trunk/test/ELF/gdb-index-noranges.s
    lld/trunk/test/ELF/gdb-index-tls.s
    lld/trunk/test/ELF/global_offset_table.s
    lld/trunk/test/ELF/i386-debug-noabs.test
    lld/trunk/test/ELF/i386-reloc-16.s
    lld/trunk/test/ELF/i386-reloc-8.s
    lld/trunk/test/ELF/i386-reloc-range.s
    lld/trunk/test/ELF/i386-tls-got.s
    lld/trunk/test/ELF/icf-absolute.s
    lld/trunk/test/ELF/icf-c-identifier.s
    lld/trunk/test/ELF/icf-comdat.s
    lld/trunk/test/ELF/icf-different-output-sections.s
    lld/trunk/test/ELF/icf-i386.s
    lld/trunk/test/ELF/icf-many-sections.s
    lld/trunk/test/ELF/icf-merge-sec.s
    lld/trunk/test/ELF/icf-merge.s
    lld/trunk/test/ELF/icf-non-mergeable.s
    lld/trunk/test/ELF/icf-none.s
    lld/trunk/test/ELF/icf-relro.s
    lld/trunk/test/ELF/icf1.s
    lld/trunk/test/ELF/icf10.test
    lld/trunk/test/ELF/icf11.test
    lld/trunk/test/ELF/icf12.s
    lld/trunk/test/ELF/icf13.s
    lld/trunk/test/ELF/icf14.s
    lld/trunk/test/ELF/icf15.s
    lld/trunk/test/ELF/icf16.s
    lld/trunk/test/ELF/icf2.s
    lld/trunk/test/ELF/icf3.s
    lld/trunk/test/ELF/icf4.s
    lld/trunk/test/ELF/icf5.s
    lld/trunk/test/ELF/icf6.s
    lld/trunk/test/ELF/incompatible-ar-first.s
    lld/trunk/test/ELF/incompatible-section-flags.s
    lld/trunk/test/ELF/incompatible-section-types2.s
    lld/trunk/test/ELF/invalid-cie-length.s
    lld/trunk/test/ELF/invalid-cie-length2.s
    lld/trunk/test/ELF/invalid-cie-length3.s
    lld/trunk/test/ELF/invalid-cie-length4.s
    lld/trunk/test/ELF/invalid-cie-length5.s
    lld/trunk/test/ELF/invalid-cie-reference.s
    lld/trunk/test/ELF/invalid-eh-frame.s
    lld/trunk/test/ELF/invalid-eh-frame2.s
    lld/trunk/test/ELF/invalid-eh-frame3.s
    lld/trunk/test/ELF/invalid-eh-frame4.s
    lld/trunk/test/ELF/invalid-eh-frame5.s
    lld/trunk/test/ELF/invalid-eh-frame6.s
    lld/trunk/test/ELF/invalid-eh-frame7.s
    lld/trunk/test/ELF/invalid-eh-frame8.s
    lld/trunk/test/ELF/invalid-eh-frame9.s
    lld/trunk/test/ELF/invalid-relocations.test
    lld/trunk/test/ELF/invalid-undef-section-symbol.test
    lld/trunk/test/ELF/invalid/dynamic-section-size.s
    lld/trunk/test/ELF/invalid/eh-frame-hdr-no-out.s
    lld/trunk/test/ELF/invalid/executable.s
    lld/trunk/test/ELF/invalid/invalid-e_shnum.s
    lld/trunk/test/ELF/invalid/merge-invalid-size.s
    lld/trunk/test/ELF/invalid/mips-invalid-options-descriptor.s
    lld/trunk/test/ELF/invalid/section-alignment2.s
    lld/trunk/test/ELF/invalid/sht-group.s
    lld/trunk/test/ELF/invalid/symbol-index.s
    lld/trunk/test/ELF/invalid/symbol-name.s
    lld/trunk/test/ELF/invalid/tls-symbol.s
    lld/trunk/test/ELF/just-symbols-cref.s
    lld/trunk/test/ELF/just-symbols.s
    lld/trunk/test/ELF/linkerscript/assert.s
    lld/trunk/test/ELF/linkerscript/copy-rel-symbol-value-err.s
    lld/trunk/test/ELF/linkerscript/edata-etext.s
    lld/trunk/test/ELF/linkerscript/eh-frame-hdr.s
    lld/trunk/test/ELF/linkerscript/eh-frame.s
    lld/trunk/test/ELF/linkerscript/group.s
    lld/trunk/test/ELF/linkerscript/header-phdr2.s
    lld/trunk/test/ELF/linkerscript/huge-temporary-file.s
    lld/trunk/test/ELF/linkerscript/i386-sections-max-va-overflow.s
    lld/trunk/test/ELF/linkerscript/memory2.s
    lld/trunk/test/ELF/linkerscript/numbers.s
    lld/trunk/test/ELF/linkerscript/output-too-large.s
    lld/trunk/test/ELF/linkerscript/pt_gnu_eh_frame.s
    lld/trunk/test/ELF/linkerscript/searchdir.s
    lld/trunk/test/ELF/linkerscript/sections-max-va-overflow.s
    lld/trunk/test/ELF/linkerscript/segment-start.s
    lld/trunk/test/ELF/linkerscript/subalign.s
    lld/trunk/test/ELF/linkerscript/symbol-assignexpr.s
    lld/trunk/test/ELF/linkerscript/symbol-memoryexpr.s
    lld/trunk/test/ELF/linkerscript/symbol-ordering-file.s
    lld/trunk/test/ELF/llvm33-rela-outside-group.s
    lld/trunk/test/ELF/lto/data-ordering-lto.s
    lld/trunk/test/ELF/lto/symbol-ordering-lto.s
    lld/trunk/test/ELF/map-file-i686.s
    lld/trunk/test/ELF/map-gc-sections.s
    lld/trunk/test/ELF/merge-string-empty.s
    lld/trunk/test/ELF/merge-string-error.s
    lld/trunk/test/ELF/merge-string-no-null.s
    lld/trunk/test/ELF/mips-align-err.s
    lld/trunk/test/ELF/mips-gnu-hash.s
    lld/trunk/test/ELF/mips-n32-emul.s
    lld/trunk/test/ELF/mips-out-of-bounds-call16-reloc.s
    lld/trunk/test/ELF/mips-tls-64-pic-local-variable.s
    lld/trunk/test/ELF/multiple-cu.s
    lld/trunk/test/ELF/no-augmentation.s
    lld/trunk/test/ELF/no-line-parser-errors-if-empty-section.s
    lld/trunk/test/ELF/no-line-parser-errors-if-no-section.s
    lld/trunk/test/ELF/no-obj.s
    lld/trunk/test/ELF/no-symtab.s
    lld/trunk/test/ELF/no-undefined.s
    lld/trunk/test/ELF/oformat-binary.s
    lld/trunk/test/ELF/ppc64-addr16-error.s
    lld/trunk/test/ELF/pr34872.s
    lld/trunk/test/ELF/relocation-dtrace.test
    lld/trunk/test/ELF/relocation-nocopy.s
    lld/trunk/test/ELF/relocation-none-aarch64.test
    lld/trunk/test/ELF/relocation-none-i686.test
    lld/trunk/test/ELF/relocation-past-merge-end.s
    lld/trunk/test/ELF/relocation-relative-absolute.s
    lld/trunk/test/ELF/relocation-size-err.s
    lld/trunk/test/ELF/relro-script.s
    lld/trunk/test/ELF/section-align-0.test
    lld/trunk/test/ELF/section-metadata-err.s
    lld/trunk/test/ELF/section-metadata-err2.s
    lld/trunk/test/ELF/section-metadata-err3.s
    lld/trunk/test/ELF/section-symbols.test
    lld/trunk/test/ELF/sectionstart.s
    lld/trunk/test/ELF/splitstacks.s
    lld/trunk/test/ELF/symbol-ordering-file.s
    lld/trunk/test/ELF/symver-archive.s
    lld/trunk/test/ELF/tls-archive.s
    lld/trunk/test/ELF/tls-error.s
    lld/trunk/test/ELF/tls-in-archive.s
    lld/trunk/test/ELF/tls-mismatch.s
    lld/trunk/test/ELF/trace-symbols.s
    lld/trunk/test/ELF/typed-undef.s
    lld/trunk/test/ELF/undef-broken-debug.test
    lld/trunk/test/ELF/undef-shared.s
    lld/trunk/test/ELF/undef-start.s
    lld/trunk/test/ELF/unresolved-symbols.s
    lld/trunk/test/ELF/user_def_init_array_start.s
    lld/trunk/test/ELF/verneed-local.s
    lld/trunk/test/ELF/version-script-complex-wildcards.s
    lld/trunk/test/ELF/version-script-glob.s
    lld/trunk/test/ELF/version-script-missing.s
    lld/trunk/test/ELF/version-script-no-warn.s
    lld/trunk/test/ELF/version-script-no-warn2.s
    lld/trunk/test/ELF/version-script-symver.s
    lld/trunk/test/ELF/version-script.s
    lld/trunk/test/ELF/version-symbol-error.s
    lld/trunk/test/ELF/version-undef-sym.s
    lld/trunk/test/ELF/warn-backrefs.s
    lld/trunk/test/ELF/warn-unresolved-symbols-hidden.s
    lld/trunk/test/ELF/warn-unresolved-symbols.s
    lld/trunk/test/ELF/weak-undef-lazy.s
    lld/trunk/test/ELF/whole-archive-name.s
    lld/trunk/test/ELF/writable-merge.s
    lld/trunk/test/ELF/x86-64-dyn-rel-error2.s
    lld/trunk/test/ELF/x86-64-dyn-rel-error3.s
    lld/trunk/test/ELF/x86-64-reloc-16.s
    lld/trunk/test/ELF/x86-64-reloc-32-fpic.s
    lld/trunk/test/ELF/x86-64-reloc-8.s
    lld/trunk/test/ELF/x86-64-reloc-debug-overflow.s
    lld/trunk/test/ELF/x86-64-reloc-error-reporting.s
    lld/trunk/test/ELF/x86-64-reloc-error.s
    lld/trunk/test/ELF/x86-64-reloc-pc32-fpic.s
    lld/trunk/test/ELF/x86-64-reloc-range.s
    lld/trunk/test/ELF/x86-64-reloc-tpoff32-fpic.s
    lld/trunk/test/ELF/znotext-plt-relocations-protected.s

Modified: lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s (original)
+++ lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-// RUN: not ld.lld %t -fix-cortex-a53-843419 -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -fix-cortex-a53-843419 -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: --fix-cortex-a53-843419 is only supported on AArch64 targets.
 .globl entry

Modified: lld/trunk/test/ELF/aarch64-cortex-a53-843419-nopatch.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-cortex-a53-843419-nopatch.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-cortex-a53-843419-nopatch.s (original)
+++ lld/trunk/test/ELF/aarch64-cortex-a53-843419-nopatch.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o
-// RUN: ld.lld -fix-cortex-a53-843419 -verbose -t %t.o -o %t2 | FileCheck %s
+// RUN: ld.lld -fix-cortex-a53-843419 -verbose -t %t.o -o /dev/null | FileCheck %s
 // Test cases for Cortex-A53 Erratum 843419 that we don't expect to recognize
 // as needing a patch as one or more of the conditions isn't satisfied.
 // See ARM-EPM-048406 Cortex_A53_MPCore_Software_Developers_Errata_Notice.pdf

Modified: lld/trunk/test/ELF/aarch64-fpic-abs16.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-abs16.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-abs16.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-abs16.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK:      relocation R_AARCH64_ABS16 cannot be used against symbol foo; recompile with -fPIC
 // CHECK-NEXT: >>> defined in {{.*}}.o
 // CHECK-NEXT: >>> referenced by {{.*}}.o:(.data+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-add_abs_lo12_nc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-add_abs_lo12_nc.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-add_abs_lo12_nc.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-add_abs_lo12_nc.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol: dat in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-adr_prel_lo21.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-adr_prel_lo21.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-adr_prel_lo21.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-adr_prel_lo21.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol dat; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-adr_prel_pg_hi21.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol dat; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: can't create dynamic relocation R_AARCH64_LDST32_ABS_LO12_NC against symbol: dat in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: can't create dynamic relocation R_AARCH64_LDST64_ABS_LO12_NC against symbol: dat in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: can't create dynamic relocation R_AARCH64_LDST8_ABS_LO12_NC against symbol: dat in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.o
 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-prel16.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-prel16.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-prel16.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-prel16.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: R_AARCH64_PREL16 cannot be used against symbol foo; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}
 // CHECK: >>> referenced by {{.*}}:(.data+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-prel32.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-prel32.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-prel32.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-prel32.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: relocation R_AARCH64_PREL32 cannot be used against symbol foo; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}
 // CHECK: >>> referenced by {{.*}}:(.data+0x0)

Modified: lld/trunk/test/ELF/aarch64-fpic-prel64.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-fpic-prel64.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-fpic-prel64.s (original)
+++ lld/trunk/test/ELF/aarch64-fpic-prel64.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: relocation R_AARCH64_PREL64 cannot be used against symbol foo; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}
 // CHECK: >>> referenced by {{.*}}:(.data+0x0)

Modified: lld/trunk/test/ELF/aarch64-hi21-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-hi21-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-hi21-error.s (original)
+++ lld/trunk/test/ELF/aarch64-hi21-error.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs
 // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t
-// RUN: not ld.lld %tabs %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %tabs %t -o /dev/null 2>&1 | FileCheck %s
 
 .globl _start
 _start:

Modified: lld/trunk/test/ELF/aarch64-ldprel-lo19-invalid.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-ldprel-lo19-invalid.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-ldprel-lo19-invalid.s (original)
+++ lld/trunk/test/ELF/aarch64-ldprel-lo19-invalid.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: aarch64
 
 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
-# RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_AARCH64_LD_PREL_LO19 out of range: 2065536 is not in [-1048576, 1048575]
 

Modified: lld/trunk/test/ELF/aarch64-lo12-alignment.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-lo12-alignment.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-lo12-alignment.s (original)
+++ lld/trunk/test/ELF/aarch64-lo12-alignment.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 // Test derived from a typical ODR violation where a global is declared
 // extern int but defined as a half or byte sized type.

Modified: lld/trunk/test/ELF/aarch64-lo21-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-lo21-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-lo21-error.s (original)
+++ lld/trunk/test/ELF/aarch64-lo21-error.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: aarch64
 // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs
 // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t
-// RUN: not ld.lld %tabs %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %tabs %t -o /dev/null 2>&1 | FileCheck %s
 
 .globl _start
 _start:

Modified: lld/trunk/test/ELF/aarch64-load-alignment.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-load-alignment.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-load-alignment.s (original)
+++ lld/trunk/test/ELF/aarch64-load-alignment.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: aarch64
 
 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
-# RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: improper alignment for relocation R_AARCH64_LD_PREL_LO19: 0x10005 is not aligned to 4 bytes
 

Modified: lld/trunk/test/ELF/amdgpu-elf-flags-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/amdgpu-elf-flags-err.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/amdgpu-elf-flags-err.s (original)
+++ lld/trunk/test/ELF/amdgpu-elf-flags-err.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: amdgpu
 # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj %S/Inputs/amdgpu-kernel-0.s -o %t-0.o
 # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx803 -filetype=obj %S/Inputs/amdgpu-kernel-1.s -o %t-1.o
-# RUN: not ld.lld -shared %t-0.o %t-1.o -o %t.so 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %t-0.o %t-1.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: incompatible e_flags: {{.*}}-1.o

Modified: lld/trunk/test/ELF/arm-bl-v6.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-bl-v6.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-bl-v6.s (original)
+++ lld/trunk/test/ELF/arm-bl-v6.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: arm
 // RUN: llvm-mc -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t
-// RUN: ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 // On Arm v6 the range of a Thumb BL instruction is only 4 megabytes as the
 // extended range encoding is not supported. The following example has a Thumb

Modified: lld/trunk/test/ELF/arm-blx-v4t.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-blx-v4t.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-blx-v4t.s (original)
+++ lld/trunk/test/ELF/arm-blx-v4t.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: arm
 // RUN: llvm-mc -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t
-// RUN: ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 // On Arm v4t there is no blx instruction so all interworking must go via
 // a thunk. At present we don't support v4t so we give a warning for unsupported

Modified: lld/trunk/test/ELF/arm-thumb-interwork-thunk-range.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thumb-interwork-thunk-range.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thumb-interwork-thunk-range.s (original)
+++ lld/trunk/test/ELF/arm-thumb-interwork-thunk-range.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: arm
 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
-// RUN: ld.lld %t.o -o %t -image-base=0x80000000
+// RUN: ld.lld %t.o -o /dev/null -image-base=0x80000000
 
 // Test that when the thunk is at a high address we don't get confused with it
 // being out of range.

Modified: lld/trunk/test/ELF/arm-thunk-section-too-large.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thunk-section-too-large.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thunk-section-too-large.s (original)
+++ lld/trunk/test/ELF/arm-thunk-section-too-large.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: ARM
 // RUN: llvm-mc %s -triple=armv7a-linux-gnueabihf -arm-add-build-attributes -filetype=obj -o %t.o
-// RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: InputSection too large for range extension thunk
         .syntax unified

Modified: lld/trunk/test/ELF/arm-thunk-toolargesection.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thunk-toolargesection.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thunk-toolargesection.s (original)
+++ lld/trunk/test/ELF/arm-thunk-toolargesection.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: arm
 // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
  .syntax unified
  .balign 0x1000
  .thumb

Modified: lld/trunk/test/ELF/arm-use-r-output.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-use-r-output.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-use-r-output.s (original)
+++ lld/trunk/test/ELF/arm-use-r-output.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: arm
 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
 // RUN: ld.lld -r %t.o -o %t2.o
-// RUN: ld.lld -shared %t2.o -o %t.so
+// RUN: ld.lld -shared %t2.o -o /dev/null
 
 // We used to crash using the output of -r because of the relative order of
 // SHF_LINK_ORDER sections.

Modified: lld/trunk/test/ELF/cgprofile-warn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/cgprofile-warn.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/cgprofile-warn.s (original)
+++ lld/trunk/test/ELF/cgprofile-warn.s Mon Jul  2 10:48:23 2018
@@ -7,7 +7,7 @@
 # RUN: echo "B C 30" >> %t.call_graph
 # RUN: echo "adena A 30" >> %t.call_graph
 # RUN: echo "poppy A 30" >> %t.call_graph
-# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o %t.out \
+# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o /dev/null \
 # RUN:   -noinhibit-exec -icf=all 2>&1 | FileCheck %s
 
     .section    .text.C,"ax", at progbits

Modified: lld/trunk/test/ELF/compressed-debug-conflict.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/compressed-debug-conflict.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/compressed-debug-conflict.s (original)
+++ lld/trunk/test/ELF/compressed-debug-conflict.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86, zlib
 # RUN: llvm-mc -filetype=obj -triple i686-linux-gnu -compress-debug-sections=zlib %s -o %t.o
 # RUN: llvm-readobj -sections %t.o | FileCheck -check-prefix=OBJ %s
-# RUN: not ld.lld %t.o %t.o -o %tout 2>&1 | FileCheck -check-prefix=ERROR %s
+# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck -check-prefix=ERROR %s
 
 # OBJ:      Sections [
 # OBJ:        Section {

Modified: lld/trunk/test/ELF/conflict-debug-variable2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict-debug-variable2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict-debug-variable2.s (original)
+++ lld/trunk/test/ELF/conflict-debug-variable2.s Mon Jul  2 10:48:23 2018
@@ -19,7 +19,7 @@
 # INPUT-NEXT:    DW_AT_location [DW_FORM_exprloc]        (DW_OP_addr 0x0)
 
 ## Check we use information from .debug_info in messages.
-# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
 # CHECK:      duplicate symbol: bar
 # CHECK-NEXT: >>> defined at test.c:2
 # CHECK-NEXT: >>>            {{.*}}:(bar)

Modified: lld/trunk/test/ELF/conflict-variable-linkage-name.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict-variable-linkage-name.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict-variable-linkage-name.s (original)
+++ lld/trunk/test/ELF/conflict-variable-linkage-name.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
 
 ## Check we can report the locations of 2 different "bar" variables.
 # CHECK:      duplicate symbol: A::bar

Modified: lld/trunk/test/ELF/conflict.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict.s (original)
+++ lld/trunk/test/ELF/conflict.s Mon Jul  2 10:48:23 2018
@@ -34,7 +34,7 @@
 # ARCHIVE-NEXT: >>> defined at {{.*}}:(.text+0x0) in archive {{.*}}.a
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/conflict-debug.s -o %t-dbg.o
-# RUN: not ld.lld %t-dbg.o %t-dbg.o -o %t-dbg 2>&1 | FileCheck -check-prefix=DBGINFO %s
+# RUN: not ld.lld %t-dbg.o %t-dbg.o -o /dev/null 2>&1 | FileCheck -check-prefix=DBGINFO %s
 
 # DBGINFO:      duplicate symbol: zed
 # DBGINFO-NEXT: >>> defined at conflict-debug.s:4

Modified: lld/trunk/test/ELF/copy-in-shared.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/copy-in-shared.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/copy-in-shared.s (original)
+++ lld/trunk/test/ELF/copy-in-shared.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o
 // RUN: ld.lld -shared %t1.o -o %t1.so
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
-// RUN: not ld.lld %t2.o %t1.so -o %t2.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t2.o %t1.so -o /dev/null -shared 2>&1 | FileCheck %s
 
 // CHECK: can't create dynamic relocation R_X86_64_64 against symbol: foo in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.so

Modified: lld/trunk/test/ELF/copy-rel-corrupted.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/copy-rel-corrupted.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/copy-rel-corrupted.s (original)
+++ lld/trunk/test/ELF/copy-rel-corrupted.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
 // RUN: llvm-mc %p/Inputs/copy-rel-corrupted.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
 // RUN: ld.lld %t2.o -o %t2.so -shared
-// RUN: not ld.lld %t.o %t2.so -o %t.exe 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: error: cannot create a copy relocation for symbol x
 

Modified: lld/trunk/test/ELF/copy-rel-pie-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/copy-rel-pie-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/copy-rel-pie-error.s (original)
+++ lld/trunk/test/ELF/copy-rel-pie-error.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
 // RUN: llvm-mc %p/Inputs/copy-rel-pie.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
 // RUN: ld.lld %t2.o -o %t2.so -shared
-// RUN: not ld.lld %t.o %t2.so -o %t.exe -pie 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o %t2.so -o /dev/null -pie 2>&1 | FileCheck %s
 
 // CHECK: can't create dynamic relocation R_X86_64_64 against symbol: bar in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.so

Modified: lld/trunk/test/ELF/corrupted-version-reference.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/corrupted-version-reference.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/corrupted-version-reference.s (original)
+++ lld/trunk/test/ELF/corrupted-version-reference.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: mips
 # RUN: llvm-mc -triple=mips64-unknown-freebsd %s -filetype=obj -o %t.o
-# RUN: not ld.lld %t.o %S/Inputs/corrupt-version-reference.so -o %t.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %S/Inputs/corrupt-version-reference.so -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: corrupt input file: version definition index 9 for symbol __cxa_finalize is out of bounds
 # CHECK: >>> defined in {{.+}}/corrupt-version-reference.so

Modified: lld/trunk/test/ELF/defined-tls_get_addr.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/defined-tls_get_addr.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/defined-tls_get_addr.s (original)
+++ lld/trunk/test/ELF/defined-tls_get_addr.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
-// RUN: ld.lld %t.o -o %t
+// RUN: ld.lld %t.o -o /dev/null
 
 // Don't error if __tls_get_addr is defined.
 

Modified: lld/trunk/test/ELF/dynamic-reloc-in-ro.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/dynamic-reloc-in-ro.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/dynamic-reloc-in-ro.s (original)
+++ lld/trunk/test/ELF/dynamic-reloc-in-ro.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 // CHECK:      can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK-NEXT: >>> defined in {{.*}}.o

Modified: lld/trunk/test/ELF/eh-frame-dyn-rel.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-dyn-rel.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-dyn-rel.s (original)
+++ lld/trunk/test/ELF/eh-frame-dyn-rel.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o %t.o -o %t -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 // CHECK: can't create dynamic relocation R_X86_64_64 against symbol: foo in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 // CHECK: >>> defined in {{.*}}.o

Modified: lld/trunk/test/ELF/eh-frame-multilpe-cie.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-multilpe-cie.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-multilpe-cie.s (original)
+++ lld/trunk/test/ELF/eh-frame-multilpe-cie.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: ld.lld --eh-frame-hdr %t.o -o %t.so -shared
+// RUN: ld.lld --eh-frame-hdr %t.o -o /dev/null -shared
 // We would fail to parse multiple cies in the same file.
 
         .cfi_startproc

Modified: lld/trunk/test/ELF/eh-frame-rel.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-rel.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-rel.s (original)
+++ lld/trunk/test/ELF/eh-frame-rel.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o %t.o -o %t -shared
+// RUN: ld.lld %t.o %t.o -o /dev/null -shared
 // We used to try to read the relocations as RELA and error out
 
 	.cfi_startproc

Modified: lld/trunk/test/ELF/eh-frame-value-format1.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format1.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format1.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format1.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x14

Modified: lld/trunk/test/ELF/eh-frame-value-format2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format2.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format2.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x14

Modified: lld/trunk/test/ELF/eh-frame-value-format3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format3.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format3.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x0E

Modified: lld/trunk/test/ELF/eh-frame-value-format4.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format4.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format4.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format4.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x0E

Modified: lld/trunk/test/ELF/eh-frame-value-format5.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format5.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format5.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format5.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x14

Modified: lld/trunk/test/ELF/eh-frame-value-format6.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/eh-frame-value-format6.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/eh-frame-value-format6.s (original)
+++ lld/trunk/test/ELF/eh-frame-value-format6.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: ld.lld --eh-frame-hdr %t -o %t2
+# RUN: ld.lld --eh-frame-hdr %t -o /dev/null
 
 .section .eh_frame
   .byte 0x14

Modified: lld/trunk/test/ELF/empty-archive.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/empty-archive.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/empty-archive.s (original)
+++ lld/trunk/test/ELF/empty-archive.s Mon Jul  2 10:48:23 2018
@@ -1,4 +1,4 @@
 // REQUIRES: x86
 // RUN: llvm-ar rc %t.a
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld -shared %t.o %t.a -o %t
+// RUN: ld.lld -shared %t.o %t.a -o /dev/null

Modified: lld/trunk/test/ELF/executable-undefined-protected-ignoreall.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/executable-undefined-protected-ignoreall.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/executable-undefined-protected-ignoreall.s (original)
+++ lld/trunk/test/ELF/executable-undefined-protected-ignoreall.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: not ld.lld %t -o %tout --unresolved-symbols=ignore-all -pie 2>&1 | FileCheck %s
+# RUN: not ld.lld %t -o /dev/null --unresolved-symbols=ignore-all -pie 2>&1 | FileCheck %s
 # CHECK: error: undefined symbol: foo
 
 .protected foo

Modified: lld/trunk/test/ELF/fatal-warnings.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/fatal-warnings.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/fatal-warnings.s (original)
+++ lld/trunk/test/ELF/fatal-warnings.s Mon Jul  2 10:48:23 2018
@@ -2,11 +2,11 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o
 
-# RUN: ld.lld --warn-common %t1.o %t2.o -o %t1.out 2>&1 | \
+# RUN: ld.lld --warn-common %t1.o %t2.o -o /dev/null 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERR %s
 # ERR: multiple common of
 
-# RUN: not ld.lld --warn-common --fatal-warnings %t1.o %t2.o -o %t2.out 2>&1 | \
+# RUN: not ld.lld --warn-common --fatal-warnings %t1.o %t2.o -o /dev/null 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERR %s
 
 .globl _start

Modified: lld/trunk/test/ELF/filter.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/filter.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/filter.s (original)
+++ lld/trunk/test/ELF/filter.s Mon Jul  2 10:48:23 2018
@@ -16,5 +16,5 @@
 # CHECK-NEXT: 0x000000007FFFFFFF FILTER        Filter library: [foo.so]
 # CHECK-NEXT: 0x000000007FFFFFFF FILTER        Filter library: [boo.so]
 
-# RUN: not ld.lld %t.o -F x -o %t 2>&1 | FileCheck -check-prefix=ERR %s
+# RUN: not ld.lld %t.o -F x -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s
 # ERR: -F may not be used without -shared

Modified: lld/trunk/test/ELF/gc-absolute.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/gc-absolute.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/gc-absolute.s (original)
+++ lld/trunk/test/ELF/gc-absolute.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 -shared --gc-sections
+# RUN: ld.lld %t -o /dev/null -shared --gc-sections
 
 .global foo
 foo = 0x123

Modified: lld/trunk/test/ELF/gdb-index-noranges.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/gdb-index-noranges.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/gdb-index-noranges.s (original)
+++ lld/trunk/test/ELF/gdb-index-noranges.s Mon Jul  2 10:48:23 2018
@@ -10,7 +10,7 @@
 ##
 ## Debug information does not contain any address ranges.
 ## We crashed in that case. Check we don't.
-# RUN: ld.lld --gdb-index %t1.o -o %t
+# RUN: ld.lld --gdb-index %t1.o -o /dev/null
 
 .section  .debug_str,"MS", at progbits,1
 .Lskel_string0:

Modified: lld/trunk/test/ELF/gdb-index-tls.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/gdb-index-tls.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/gdb-index-tls.s (original)
+++ lld/trunk/test/ELF/gdb-index-tls.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: ld.lld --gdb-index -shared %t.o -o %t
+# RUN: ld.lld --gdb-index -shared %t.o -o /dev/null
 
 # This used to fail trying to compute R_X86_64_DTPOFF64
 

Modified: lld/trunk/test/ELF/global_offset_table.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/global_offset_table.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/global_offset_table.s (original)
+++ lld/trunk/test/ELF/global_offset_table.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: ld.lld %t -o %t2
+// RUN: ld.lld %t -o /dev/null
 .global _start
 _start:
 .long _GLOBAL_OFFSET_TABLE_

Modified: lld/trunk/test/ELF/i386-debug-noabs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-debug-noabs.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-debug-noabs.test (original)
+++ lld/trunk/test/ELF/i386-debug-noabs.test Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld %t.o -o %t.exe --entry 0 --fatal-warnings
+# RUN: ld.lld %t.o -o /dev/null --entry 0 --fatal-warnings
 
 ## This is for https://bugs.llvm.org//show_bug.cgi?id=34852. GCC 8.0 or
 ## earlier have a bug which creates non-absolute R_386_GOTPC relocations

Modified: lld/trunk/test/ELF/i386-reloc-16.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-reloc-16.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-reloc-16.s (original)
+++ lld/trunk/test/ELF/i386-reloc-16.s Mon Jul  2 10:48:23 2018
@@ -9,7 +9,7 @@
 // CHECK:      Contents of section .text:
 // CHECK-NEXT:   1000 42
 
-// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_386_16 out of range: 65536 is not in [-32768, 32767]
 
 .short foo

Modified: lld/trunk/test/ELF/i386-reloc-8.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-reloc-8.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-reloc-8.s (original)
+++ lld/trunk/test/ELF/i386-reloc-8.s Mon Jul  2 10:48:23 2018
@@ -9,7 +9,7 @@
 // CHECK:      Contents of section .text:
 // CHECK-NEXT:   1000 ff
 
-// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_386_8 out of range: 256 is not in [-128, 127]
 
 .byte foo

Modified: lld/trunk/test/ELF/i386-reloc-range.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-reloc-range.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-reloc-range.s (original)
+++ lld/trunk/test/ELF/i386-reloc-range.s Mon Jul  2 10:48:23 2018
@@ -14,7 +14,7 @@
 // CHECK-NEXT:      200: {{.*}} jmp -1
 //              0x10202 - 0x203 == 0xffff
 
-// RUN: not ld.lld -Ttext 0x200 %t.o %t2.o -o %t2 2>&1 | FileCheck --check-prefix=ERR %s
+// RUN: not ld.lld -Ttext 0x200 %t.o %t2.o -o /dev/null 2>&1 | FileCheck --check-prefix=ERR %s
 
 // ERR: {{.*}}:(.text+0x1): relocation R_386_PC16 out of range: 65536 is not in [-65536, 65535]
 

Modified: lld/trunk/test/ELF/i386-tls-got.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-tls-got.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-tls-got.s (original)
+++ lld/trunk/test/ELF/i386-tls-got.s Mon Jul  2 10:48:23 2018
@@ -2,6 +2,6 @@
 # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-tls-got.s -o %t1.o
 # RUN: ld.lld %t1.o -o %t1.so -shared
 # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t2.o
-# RUN: ld.lld %t2.o %t1.so -o %t
+# RUN: ld.lld %t2.o %t1.so -o /dev/null
 
 	addl	foobar at INDNTPOFF, %eax

Modified: lld/trunk/test/ELF/icf-absolute.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-absolute.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-absolute.s (original)
+++ lld/trunk/test/ELF/icf-absolute.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute.s -o %t2
-# RUN: ld.lld %t %t2 -o %t3 --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.text.f1)
 # CHECK:   removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf-c-identifier.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-c-identifier.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-c-identifier.s (original)
+++ lld/trunk/test/ELF/icf-c-identifier.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | count 0
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
 
 .section foo,"ax", at progbits,unique,0
 .byte 42

Modified: lld/trunk/test/ELF/icf-comdat.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-comdat.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-comdat.s (original)
+++ lld/trunk/test/ELF/icf-comdat.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.text.f1)
 # CHECK:   removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf-different-output-sections.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-different-output-sections.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-different-output-sections.s (original)
+++ lld/trunk/test/ELF/icf-different-output-sections.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | count 0
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
 
 .section .foo,"ax"
 .byte 42

Modified: lld/trunk/test/ELF/icf-i386.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-i386.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-i386.s (original)
+++ lld/trunk/test/ELF/icf-i386.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # This test is to make sure that we can handle implicit addends properly.
 
 # RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections 2>&1 | FileCheck %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck %s
 
 # CHECK:     selected section {{.*}}:(.text.f1)
 # CHECK:       removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf-many-sections.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-many-sections.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-many-sections.s (original)
+++ lld/trunk/test/ELF/icf-many-sections.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
-# RUN: ld.lld --icf=all --print-icf-sections %t -o %t2 | FileCheck %s -allow-empty
+# RUN: ld.lld --icf=all --print-icf-sections %t -o /dev/null | FileCheck %s -allow-empty
 
 # CHECK-NOT: selected
 

Modified: lld/trunk/test/ELF/icf-merge-sec.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-merge-sec.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-merge-sec.s (original)
+++ lld/trunk/test/ELF/icf-merge-sec.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge-sec.s -o %t2
-# RUN: ld.lld %t %t2 -o %t3 --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.text.f1)
 # CHECK:   removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf-merge.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-merge.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-merge.s (original)
+++ lld/trunk/test/ELF/icf-merge.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge.s -o %t1
-# RUN: ld.lld %t %t1 -o %t1.out --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t %t1 -o /dev/null --icf=all --print-icf-sections | FileCheck %s
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge2.s -o %t2
 # RUN: ld.lld %t %t2 -o %t3.out --icf=all --print-icf-sections | FileCheck --check-prefix=NOMERGE %s

Modified: lld/trunk/test/ELF/icf-non-mergeable.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-non-mergeable.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-non-mergeable.s (original)
+++ lld/trunk/test/ELF/icf-non-mergeable.s Mon Jul  2 10:48:23 2018
@@ -8,7 +8,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
 // RUN:    %p/Inputs/icf-non-mergeable.s -o %t2
 
-// RUN: ld.lld %t1 %t2 -o %t3 --icf=all --verbose 2>&1 | FileCheck %s
+// RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --verbose 2>&1 | FileCheck %s
 
 // CHECK-NOT: selected section '.text.f1'
 // CHECK-NOT:   removing identical section '.text.f2'

Modified: lld/trunk/test/ELF/icf-none.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-none.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-none.s (original)
+++ lld/trunk/test/ELF/icf-none.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --icf=none --verbose 2>&1 | FileCheck %s
+# RUN: ld.lld %t -o /dev/null --icf=all --icf=none --verbose 2>&1 | FileCheck %s
 
 # CHECK-NOT: selected section '.text.f1'
 

Modified: lld/trunk/test/ELF/icf-relro.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf-relro.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf-relro.s (original)
+++ lld/trunk/test/ELF/icf-relro.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --ignore-data-address-equality --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t -o /dev/null --icf=all --ignore-data-address-equality --print-icf-sections | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.data.rel.ro)
 # CHECK:   removing identical section {{.*}}:(.data.rel.ro.foo)

Modified: lld/trunk/test/ELF/icf1.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf1.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf1.s (original)
+++ lld/trunk/test/ELF/icf1.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.text.f1)
 # CHECK:   removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf10.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf10.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf10.test (original)
+++ lld/trunk/test/ELF/icf10.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld --icf=all %t.o -o %t --print-icf-sections 2>&1 | FileCheck %s
+# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
 
 # Checks that ICF does not merge 2 sections the offset of
 # the relocations of which differ.

Modified: lld/trunk/test/ELF/icf11.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf11.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf11.test (original)
+++ lld/trunk/test/ELF/icf11.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld --icf=all %t.o -o %t --print-icf-sections 2>&1 | FileCheck %s
+# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
 
 # Checks that ICF does not merge 2 sections the type of
 # the relocations of which differ.

Modified: lld/trunk/test/ELF/icf12.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf12.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf12.s (original)
+++ lld/trunk/test/ELF/icf12.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
-# RUN: ld.lld %t1 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # Check that ICF does not merge 2 sections which relocations
 # differs in addend only.

Modified: lld/trunk/test/ELF/icf13.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf13.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf13.s (original)
+++ lld/trunk/test/ELF/icf13.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
-# RUN: ld.lld -shared -z notext %t1 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 ## Check that ICF does not merge sections which relocations point to symbols
 ## that are not of the regular defined kind. 

Modified: lld/trunk/test/ELF/icf14.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf14.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf14.s (original)
+++ lld/trunk/test/ELF/icf14.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
-# RUN: ld.lld %t1 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # Check that ICF does not merge 2 sections which relocations
 # refer to symbols that live in sections of the different types

Modified: lld/trunk/test/ELF/icf15.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf15.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf15.s (original)
+++ lld/trunk/test/ELF/icf15.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
-# RUN: ld.lld %t1 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 ## Check that ICF does not merge sections which relocations have equal addends,
 ## but different target values.

Modified: lld/trunk/test/ELF/icf16.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf16.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf16.s (original)
+++ lld/trunk/test/ELF/icf16.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
-# RUN: ld.lld -shared -z notext %t1 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 ## ICF is able to merge sections which relocations referring regular input sections
 ## or mergeable sections. .eh_frame is represented with a different kind of section,

Modified: lld/trunk/test/ELF/icf2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf2.s (original)
+++ lld/trunk/test/ELF/icf2.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/icf2.s -o %t2
-# RUN: ld.lld %t1 %t2 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck %s
+# RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck %s
 
 # CHECK: selected section {{.*}}:(.text.f1)
 # CHECK:   removing identical section {{.*}}:(.text.f2)

Modified: lld/trunk/test/ELF/icf3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf3.s (original)
+++ lld/trunk/test/ELF/icf3.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/icf2.s -o %t2
-# RUN: ld.lld %t1 %t2 -o %t --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # CHECK-NOT: selected section '.text.f1' from file
 # CHECK-NOT: selected section '.text.f2' from file

Modified: lld/trunk/test/ELF/icf4.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf4.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf4.s (original)
+++ lld/trunk/test/ELF/icf4.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # CHECK-NOT: selected section '.text.f1'
 # CHECK-NOT: selected section '.text.f2'

Modified: lld/trunk/test/ELF/icf5.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf5.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf5.s (original)
+++ lld/trunk/test/ELF/icf5.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # CHECK-NOT: selected section '.text.f1'
 # CHECK-NOT: selected section '.text.f2'

Modified: lld/trunk/test/ELF/icf6.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/icf6.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/icf6.s (original)
+++ lld/trunk/test/ELF/icf6.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
+# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
 
 # CHECK-NOT: selected section '.text.f1'
 # CHECK-NOT: selected section '.text.f2'

Modified: lld/trunk/test/ELF/incompatible-ar-first.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/incompatible-ar-first.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/incompatible-ar-first.s (original)
+++ lld/trunk/test/ELF/incompatible-ar-first.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/archive.s -o %ta.o
 // RUN: llvm-ar rc %t.a %ta.o
 // RUN: llvm-mc -filetype=obj -triple=i686-linux %s -o %tb.o
-// RUN: not ld.lld %t.a %tb.o -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.a %tb.o -o /dev/null 2>&1 | FileCheck %s
 
 // We used to crash when
 // * The first object seen by the symbol table is from an archive.

Modified: lld/trunk/test/ELF/incompatible-section-flags.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/incompatible-section-flags.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/incompatible-section-flags.s (original)
+++ lld/trunk/test/ELF/incompatible-section-flags.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK:      error: incompatible section flags for .foo
 // CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.foo): 0x3

Modified: lld/trunk/test/ELF/incompatible-section-types2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/incompatible-section-types2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/incompatible-section-types2.s (original)
+++ lld/trunk/test/ELF/incompatible-section-types2.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK:      error: section type mismatch for .shstrtab
 // CHECK-NEXT: >>> <internal>:(.shstrtab): SHT_STRTAB

Modified: lld/trunk/test/ELF/invalid-cie-length.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-length.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-length.s (original)
+++ lld/trunk/test/ELF/invalid-cie-length.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 .section .eh_frame
 .byte 0

Modified: lld/trunk/test/ELF/invalid-cie-length2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-length2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-length2.s (original)
+++ lld/trunk/test/ELF/invalid-cie-length2.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 .section .eh_frame
 .long 42

Modified: lld/trunk/test/ELF/invalid-cie-length3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-length3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-length3.s (original)
+++ lld/trunk/test/ELF/invalid-cie-length3.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 .section .eh_frame
 .long 0xFFFFFFFC

Modified: lld/trunk/test/ELF/invalid-cie-length4.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-length4.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-length4.s (original)
+++ lld/trunk/test/ELF/invalid-cie-length4.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 .section .eh_frame
 .long 0xFFFFFFFF

Modified: lld/trunk/test/ELF/invalid-cie-length5.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-length5.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-length5.s (original)
+++ lld/trunk/test/ELF/invalid-cie-length5.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
  .section .eh_frame
  .long 0xFFFFFFFF

Modified: lld/trunk/test/ELF/invalid-cie-reference.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-cie-reference.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-cie-reference.s (original)
+++ lld/trunk/test/ELF/invalid-cie-reference.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
         .section .eh_frame
         .long 0x14

Modified: lld/trunk/test/ELF/invalid-eh-frame.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK:      error: corrupted .eh_frame: unexpected end of CIE
 # CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0x8)

Modified: lld/trunk/test/ELF/invalid-eh-frame2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame2.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame2.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK:      error: corrupted .eh_frame: corrupted CIE (failed to read string)
 # CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0x9)

Modified: lld/trunk/test/ELF/invalid-eh-frame3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame3.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame3.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK:      error: corrupted .eh_frame: corrupted CIE (failed to read LEB128)
 # CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0xC)

Modified: lld/trunk/test/ELF/invalid-eh-frame4.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame4.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame4.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame4.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: corrupted .eh_frame: unknown .eh_frame augmentation string:
 

Modified: lld/trunk/test/ELF/invalid-eh-frame5.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame5.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame5.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame5.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: corrupted .eh_frame: unknown .eh_frame augmentation string:
 

Modified: lld/trunk/test/ELF/invalid-eh-frame6.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame6.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame6.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame6.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: corrupted .eh_frame: unknown FDE encoding
 # CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0xE)

Modified: lld/trunk/test/ELF/invalid-eh-frame7.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame7.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame7.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame7.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: corrupted .eh_frame: DW_EH_PE_aligned encoding is not supported
 

Modified: lld/trunk/test/ELF/invalid-eh-frame8.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame8.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame8.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame8.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: corrupted .eh_frame: corrupted CIE
 

Modified: lld/trunk/test/ELF/invalid-eh-frame9.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-eh-frame9.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-eh-frame9.s (original)
+++ lld/trunk/test/ELF/invalid-eh-frame9.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: corrupted .eh_frame: CIE is too small
 

Modified: lld/trunk/test/ELF/invalid-relocations.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-relocations.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-relocations.test (original)
+++ lld/trunk/test/ELF/invalid-relocations.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t
-# RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s
+# RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 
 !ELF
 FileHeader:

Modified: lld/trunk/test/ELF/invalid-undef-section-symbol.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-undef-section-symbol.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-undef-section-symbol.test (original)
+++ lld/trunk/test/ELF/invalid-undef-section-symbol.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t.o
-# RUN: not ld.lld -r %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld -r %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # We used to crash at this.
 # CHECK: STT_SECTION symbol should be defined

Modified: lld/trunk/test/ELF/invalid/dynamic-section-size.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/dynamic-section-size.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/dynamic-section-size.s (original)
+++ lld/trunk/test/ELF/invalid/dynamic-section-size.s Mon Jul  2 10:48:23 2018
@@ -1,4 +1,4 @@
 ## dynamic-section-sh_size.elf has incorrect sh_size of dynamic section.
-# RUN: not ld.lld %p/Inputs/dynamic-section-sh_size.elf -o %t2 2>&1 | \
+# RUN: not ld.lld %p/Inputs/dynamic-section-sh_size.elf -o /dev/null 2>&1 | \
 # RUN:   FileCheck %s
 # CHECK: error: {{.*}}: invalid sh_entsize

Modified: lld/trunk/test/ELF/invalid/eh-frame-hdr-no-out.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/eh-frame-hdr-no-out.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/eh-frame-hdr-no-out.s (original)
+++ lld/trunk/test/ELF/invalid/eh-frame-hdr-no-out.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: error: corrupted .eh_frame: FDE version 1 or 3 expected, but got 2
 

Modified: lld/trunk/test/ELF/invalid/executable.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/executable.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/executable.s (original)
+++ lld/trunk/test/ELF/invalid/executable.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
 # RUN: ld.lld -o %t1.exe %t.o
-# RUN: not ld.lld -o %t2.exe %t1.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld -o /dev/null %t1.exe 2>&1 | FileCheck %s
 # CHECK: unknown file type
 
 .global _start

Modified: lld/trunk/test/ELF/invalid/invalid-e_shnum.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/invalid-e_shnum.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/invalid-e_shnum.s (original)
+++ lld/trunk/test/ELF/invalid/invalid-e_shnum.s Mon Jul  2 10:48:23 2018
@@ -1,3 +1,3 @@
 ## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though
 ## in this test case it holds non-zero and lld used to crash.
-# RUN: ld.lld %p/Inputs/invalid-e_shnum.elf -o %t2
+# RUN: ld.lld %p/Inputs/invalid-e_shnum.elf -o /dev/null

Modified: lld/trunk/test/ELF/invalid/merge-invalid-size.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/merge-invalid-size.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/merge-invalid-size.s (original)
+++ lld/trunk/test/ELF/invalid/merge-invalid-size.s Mon Jul  2 10:48:23 2018
@@ -1,10 +1,10 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: not ld.lld %t.o -o %t.so 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: SHF_MERGE section size must be a multiple of sh_entsize
 
 // Test that we accept a zero sh_entsize.
-// RUN: ld.lld %p/Inputs/shentsize-zero.elf -o %t2
+// RUN: ld.lld %p/Inputs/shentsize-zero.elf -o /dev/null
 
 .section .foo,"aM", at progbits,4
 .short 42

Modified: lld/trunk/test/ELF/invalid/mips-invalid-options-descriptor.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/mips-invalid-options-descriptor.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/mips-invalid-options-descriptor.s (original)
+++ lld/trunk/test/ELF/invalid/mips-invalid-options-descriptor.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 ## mips-invalid-options-descriptor.elf has option descriptor in
 ## .MIPS.options with size of zero.
-# RUN: not ld.lld %p/Inputs/mips-invalid-options-descriptor.elf -o %t2 2>&1 | \
+# RUN: not ld.lld %p/Inputs/mips-invalid-options-descriptor.elf -o /dev/null 2>&1 | \
 # RUN:   FileCheck %s
 # CHECK: error: {{.*}}: invalid section offset

Modified: lld/trunk/test/ELF/invalid/section-alignment2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/section-alignment2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/section-alignment2.s (original)
+++ lld/trunk/test/ELF/invalid/section-alignment2.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 ## section-alignment-notpow2.elf has section alignment
 ## 0xFFFFFFFF which is not a power of 2.
-# RUN: not ld.lld %p/Inputs/section-alignment-notpow2.elf -o %t2 2>&1 | \
+# RUN: not ld.lld %p/Inputs/section-alignment-notpow2.elf -o /dev/null 2>&1 | \
 # RUN:   FileCheck %s
 # CHECK: section sh_addralign is not a power of 2

Modified: lld/trunk/test/ELF/invalid/sht-group.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/sht-group.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/sht-group.s (original)
+++ lld/trunk/test/ELF/invalid/sht-group.s Mon Jul  2 10:48:23 2018
@@ -1,3 +1,3 @@
 ## sht-group.elf contains SHT_GROUP section with invalid sh_info.
-# RUN: not ld.lld %p/Inputs/sht-group.elf -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld %p/Inputs/sht-group.elf -o /dev/null 2>&1 | FileCheck %s
 # CHECK: invalid symbol index

Modified: lld/trunk/test/ELF/invalid/symbol-index.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/symbol-index.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/symbol-index.s (original)
+++ lld/trunk/test/ELF/invalid/symbol-index.s Mon Jul  2 10:48:23 2018
@@ -5,6 +5,6 @@
 ##   [ 0]                   NULL            0000000000000000 000000 000000 00      0   0  0
 ## ...
 ##   [ 4] .symtab           RELA            0000000000000000 000048 000030 18      1   2  8
-# RUN: not ld.lld %p/Inputs/symbol-index.elf -o %t2 2>&1 | \
+# RUN: not ld.lld %p/Inputs/symbol-index.elf -o /dev/null 2>&1 | \
 # RUN:   FileCheck --check-prefix=INVALID-SYMBOL-INDEX %s
 # INVALID-SYMBOL-INDEX: invalid symbol index

Modified: lld/trunk/test/ELF/invalid/symbol-name.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/symbol-name.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/symbol-name.s (original)
+++ lld/trunk/test/ELF/invalid/symbol-name.s Mon Jul  2 10:48:23 2018
@@ -3,5 +3,5 @@
 ## symbol-name-offset.elf contains symbol with invalid (too large)
 ## st_name value.
 # RUN: not ld.lld %S/Inputs/symbol-name-offset.elf \
-# RUN:   -o %t 2>&1 | FileCheck %s
+# RUN:   -o /dev/null 2>&1 | FileCheck %s
 # CHECK: invalid symbol name offset

Modified: lld/trunk/test/ELF/invalid/tls-symbol.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/tls-symbol.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/tls-symbol.s (original)
+++ lld/trunk/test/ELF/invalid/tls-symbol.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # REQUIRES: x86
 
 ## The test file contains an STT_TLS symbol but has no TLS section.
-# RUN: not ld.lld %S/Inputs/tls-symbol.elf -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %S/Inputs/tls-symbol.elf -o /dev/null 2>&1 | FileCheck %s
 # CHECK: has an STT_TLS symbol but doesn't have an SHF_TLS section

Modified: lld/trunk/test/ELF/just-symbols-cref.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/just-symbols-cref.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/just-symbols-cref.s (original)
+++ lld/trunk/test/ELF/just-symbols-cref.s Mon Jul  2 10:48:23 2018
@@ -1,9 +1,9 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t1.exe -Ttext=0x10000
+# RUN: ld.lld %t.o -o /dev/null -Ttext=0x10000
 
-# RUN: ld.lld -just-symbols=%t1.exe -o %t2.exe -cref | FileCheck %s
+# RUN: ld.lld -just-symbols=%t1.exe -o /dev/null -cref | FileCheck %s
 
 # CHECK:      Symbol      File
 # CHECK-NEXT: bar         {{.*exe}}

Modified: lld/trunk/test/ELF/just-symbols.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/just-symbols.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/just-symbols.s (original)
+++ lld/trunk/test/ELF/just-symbols.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t1.exe -Ttext=0x10000
+# RUN: ld.lld %t.o -o /dev/null -Ttext=0x10000
 
 # RUN: ld.lld -just-symbols=%t1.exe -o %t2.exe
 # RUN: llvm-readelf -symbols %t2.exe | FileCheck %s

Modified: lld/trunk/test/ELF/linkerscript/assert.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/assert.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/assert.s (original)
+++ lld/trunk/test/ELF/linkerscript/assert.s Mon Jul  2 10:48:23 2018
@@ -6,7 +6,7 @@
 # RUN: llvm-readobj %t1 > /dev/null
 
 # RUN: echo "SECTIONS { ASSERT(0, fail) }" > %t3.script
-# RUN: not ld.lld -shared -o %t3 --script %t3.script %t1.o > %t.log 2>&1
+# RUN: not ld.lld -shared -o /dev/null --script %t3.script %t1.o > %t.log 2>&1
 # RUN: FileCheck %s -check-prefix=FAIL < %t.log
 # FAIL: fail
 
@@ -34,7 +34,7 @@
 ## It is consistent with how ASSERT can be written outside of the
 ## output section declaration.
 # RUN: echo "SECTIONS { .foo : { ASSERT(1, \"true\") } }" > %t7.script
-# RUN: ld.lld -shared -o %t7 --script %t7.script %t1.o
+# RUN: ld.lld -shared -o /dev/null --script %t7.script %t1.o
 
 .section .foo, "a"
  .quad 0

Modified: lld/trunk/test/ELF/linkerscript/copy-rel-symbol-value-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/copy-rel-symbol-value-err.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/copy-rel-symbol-value-err.s (original)
+++ lld/trunk/test/ELF/linkerscript/copy-rel-symbol-value-err.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-rel-symbol-value.s -o %t2.o
 # RUN: ld.lld %t2.o -o %t2.so -shared
 # RUN: echo "SECTIONS { . = . + SIZEOF_HEADERS; foo = bar; }" > %t.script
-# RUN: not ld.lld %t.o %t2.so --script %t.script -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %t2.so --script %t.script -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: symbol not found: bar
 

Modified: lld/trunk/test/ELF/linkerscript/edata-etext.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/edata-etext.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/edata-etext.s (original)
+++ lld/trunk/test/ELF/linkerscript/edata-etext.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "SECTIONS { }" > %t.script
-# RUN: not ld.lld %t.o -script %t.script -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -script %t.script -o /dev/null 2>&1 | FileCheck %s
 # CHECK: error: undefined symbol: _edata
 # CHECK: >>> referenced by {{.*}}:(.text+0x0)
 # CHECK: error: undefined symbol: _etext

Modified: lld/trunk/test/ELF/linkerscript/eh-frame-hdr.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/eh-frame-hdr.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/eh-frame-hdr.s (original)
+++ lld/trunk/test/ELF/linkerscript/eh-frame-hdr.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: echo "SECTIONS { .eh_frame_hdr : {} .eh_frame : {} }" > %t.script
-# RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
+# RUN: ld.lld -o /dev/null --eh-frame-hdr --script %t.script %t
 # RUN: llvm-objdump -s -section=".eh_frame_hdr" %t1 | FileCheck %s
 
 # CHECK:      011b033b 14000000 01000000 4d000000

Modified: lld/trunk/test/ELF/linkerscript/eh-frame.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/eh-frame.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/eh-frame.s (original)
+++ lld/trunk/test/ELF/linkerscript/eh-frame.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: echo "SECTIONS { .eh_frame : { *(.eh_frame) } }" > %t.script
-# RUN: ld.lld -o %t1 --script %t.script %t
+# RUN: ld.lld -o /dev/null --script %t.script %t
 # RUN: llvm-objdump -s -section=".eh_frame" %t1 | FileCheck %s
 
 # CHECK: 0000 14000000 00000000 017a5200 01781001

Modified: lld/trunk/test/ELF/linkerscript/group.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/group.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/group.s (original)
+++ lld/trunk/test/ELF/linkerscript/group.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 
 # RUN: mkdir -p %t.dir
 # RUN: rm -f %t.dir/libxyz.a
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o /dev/null
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
 # RUN:   %p/Inputs/libsearch-st.s -o %t2.o
 # RUN: llvm-ar rcs %t.dir/libxyz.a %t2.o

Modified: lld/trunk/test/ELF/linkerscript/header-phdr2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/header-phdr2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/header-phdr2.s (original)
+++ lld/trunk/test/ELF/linkerscript/header-phdr2.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "PHDRS { foobar PT_LOAD FILEHDR PHDRS; }"  > %t.script
 # RUN: echo "SECTIONS { .text : { *(.text) } : foobar }" >> %t.script
-# RUN: not ld.lld --script %t.script %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld --script %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: could not allocate headers
 

Modified: lld/trunk/test/ELF/linkerscript/huge-temporary-file.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/huge-temporary-file.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/huge-temporary-file.s (original)
+++ lld/trunk/test/ELF/linkerscript/huge-temporary-file.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: echo "SECTIONS { .text 0x2000 : {. = 0x10 ; *(.text) } }" > %t.script
-# RUN: not ld.lld %t --script %t.script -o %t1
+# RUN: not ld.lld %t --script %t.script -o /dev/null
 
 ## This inputs previously created a 4gb temporarily file under 32 bit
 ## configuration. Issue was fixed. There is no clean way to check that from here.

Modified: lld/trunk/test/ELF/linkerscript/i386-sections-max-va-overflow.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/i386-sections-max-va-overflow.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/i386-sections-max-va-overflow.s (original)
+++ lld/trunk/test/ELF/linkerscript/i386-sections-max-va-overflow.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 
 # RUN: echo "SECTIONS { . = 0xfffffff1;" > %t.script
 # RUN: echo "           .bar : { *(.bar*) } }" >> %t.script
-# RUN: not ld.lld -o %t.so --script %t.script %t.o 2>&1 | FileCheck %s -check-prefix=ERR
+# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s -check-prefix=ERR
 
 ## .bar section has data in [0xfffffff1, 0xfffffff1 + 0x10] == [0xffffff1, 0x1]. 
 ## Check we can catch this overflow.

Modified: lld/trunk/test/ELF/linkerscript/memory2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/memory2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/memory2.s (original)
+++ lld/trunk/test/ELF/linkerscript/memory2.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \
 # RUN: SECTIONS { .text : { *(.text*) } > ram }" > %t.script
-# RUN: ld.lld -o %t2 --script %t.script %t
+# RUN: ld.lld -o /dev/null --script %t.script %t
 
 .text
 .global _start

Modified: lld/trunk/test/ELF/linkerscript/numbers.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/numbers.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/numbers.s (original)
+++ lld/trunk/test/ELF/linkerscript/numbers.s Mon Jul  2 10:48:23 2018
@@ -29,12 +29,12 @@
 
 ## Mailformed number errors.
 # RUN: echo "SECTIONS { . = 0x11h; }" > %t2.script
-# RUN: not ld.lld %t --script %t2.script -o %t3 2>&1 | \
+# RUN: not ld.lld %t --script %t2.script -o /dev/null 2>&1 | \
 # RUN:  FileCheck --check-prefix=ERR1 %s
 # ERR1: malformed number: 0x11h
 
 # RUN: echo "SECTIONS { . = 0x11k; }" > %t3.script
-# RUN: not ld.lld %t --script %t3.script -o %t4 2>&1 | \
+# RUN: not ld.lld %t --script %t3.script -o /dev/null 2>&1 | \
 # RUN:  FileCheck --check-prefix=ERR2 %s
 # ERR2: malformed number: 0x11k
 
@@ -54,7 +54,7 @@
 # ERR5: malformed number: 1zk
 
 # RUN: echo "SECTIONS { . = 1zm; }" > %t7.script
-# RUN: not ld.lld %t --script %t7.script -o %t7 2>&1 | \
+# RUN: not ld.lld %t --script %t7.script -o /dev/null 2>&1 | \
 # RUN:  FileCheck --check-prefix=ERR6 %s
 # ERR6: malformed number: 1zm
 

Modified: lld/trunk/test/ELF/linkerscript/output-too-large.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/output-too-large.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/output-too-large.s (original)
+++ lld/trunk/test/ELF/linkerscript/output-too-large.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o
 # RUN: echo "SECTIONS { .text : { . = 0xffffffff; *(.text*); } }" > %t.script
-# RUN: not ld.lld --no-check-sections --script %t.script %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld --no-check-sections --script %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
 # CHECK: error: output file too large
 
 .global _start

Modified: lld/trunk/test/ELF/linkerscript/pt_gnu_eh_frame.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/pt_gnu_eh_frame.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/pt_gnu_eh_frame.s (original)
+++ lld/trunk/test/ELF/linkerscript/pt_gnu_eh_frame.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame*) *(.eh_frame_hdr*) } }" > %t.script
-# RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
+# RUN: ld.lld -o /dev/null --eh-frame-hdr --script %t.script %t
 
 .global _start
 _start:

Modified: lld/trunk/test/ELF/linkerscript/searchdir.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/searchdir.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/searchdir.s (original)
+++ lld/trunk/test/ELF/linkerscript/searchdir.s Mon Jul  2 10:48:23 2018
@@ -4,9 +4,9 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd \
 # RUN:   %p/Inputs/libsearch-dyn.s -o %tdyn.o
 # RUN: mkdir -p %t.dir
-# RUN: ld.lld -shared %tdyn.o -o %t.dir/libls.so
+# RUN: ld.lld -shared %tdyn.o -o /dev/null
 # RUN: echo "SEARCH_DIR(\"%t.dir\")" > %t.script
-# RUN: ld.lld -o %t2 --script %t.script -lls %t
+# RUN: ld.lld -o /dev/null --script %t.script -lls %t
 
 .globl _start,_bar
 _start:

Modified: lld/trunk/test/ELF/linkerscript/sections-max-va-overflow.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/sections-max-va-overflow.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/sections-max-va-overflow.s (original)
+++ lld/trunk/test/ELF/linkerscript/sections-max-va-overflow.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 
 # RUN: echo "SECTIONS { . = 0xfffffffffffffff1;" > %t.script
 # RUN: echo "           .bar : { *(.bar*) } }" >> %t.script
-# RUN: not ld.lld -o %t.so --script %t.script %t.o 2>&1 | FileCheck %s -check-prefix=ERR
+# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s -check-prefix=ERR
 
 ## .bar section has data in [0xfffffffffffffff1, 0xfffffffffffffff1 + 0x10] ==
 ## [0xfffffffffffffff1, 0x1]. Check we can catch this overflow.

Modified: lld/trunk/test/ELF/linkerscript/segment-start.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/segment-start.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/segment-start.s (original)
+++ lld/trunk/test/ELF/linkerscript/segment-start.s Mon Jul  2 10:48:23 2018
@@ -22,6 +22,6 @@
 .quad foobar4
 
 // RUN: echo "SECTIONS { . = SEGMENT_START(\"foobar\", foo); }" > %t.script
-// RUN: not ld.lld %t.o %t.script -shared -o %t2.so 2>&1 \
+// RUN: not ld.lld %t.o %t.script -shared -o /dev/null 2>&1 \
 // RUN: | FileCheck --check-prefix=ERR %s
 // ERR: {{.*}}.script:1: symbol not found: foo

Modified: lld/trunk/test/ELF/linkerscript/subalign.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/subalign.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/subalign.s (original)
+++ lld/trunk/test/ELF/linkerscript/subalign.s Mon Jul  2 10:48:23 2018
@@ -36,7 +36,7 @@
 
 ## Test we fail gracefuly when alignment value is not a power of 2.
 # RUN: echo "SECTIONS { .aaa : SUBALIGN(3) { *(.aaa*) } }" > %t5.script
-# RUN: not ld.lld %t1.o --script %t5.script -o %t5 2>&1 | FileCheck -check-prefix=ERR %s
+# RUN: not ld.lld %t1.o --script %t5.script -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s
 # ERR: {{.*}}.script:1: alignment must be power of 2
 
 .global _start

Modified: lld/trunk/test/ELF/linkerscript/symbol-assignexpr.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/symbol-assignexpr.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/symbol-assignexpr.s (original)
+++ lld/trunk/test/ELF/linkerscript/symbol-assignexpr.s Mon Jul  2 10:48:23 2018
@@ -47,7 +47,7 @@
 # CHECK-NEXT: 0000000000000001 *ABS* 00000000 symbol15
 
 # RUN: echo "SECTIONS { symbol2 = symbol; }" > %t2.script
-# RUN: not ld.lld -o %t2 --script %t2.script %t 2>&1 \
+# RUN: not ld.lld -o /dev/null --script %t2.script %t 2>&1 \
 # RUN:  | FileCheck -check-prefix=ERR %s
 # ERR: {{.*}}.script:1: symbol not found: symbol
 

Modified: lld/trunk/test/ELF/linkerscript/symbol-memoryexpr.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/symbol-memoryexpr.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/symbol-memoryexpr.s (original)
+++ lld/trunk/test/ELF/linkerscript/symbol-memoryexpr.s Mon Jul  2 10:48:23 2018
@@ -23,7 +23,7 @@
 # RUN:         no_exist_origin = ORIGIN(ram); \
 # RUN:         no_exist_length = LENGTH(ram); \
 # RUN:       }" > %t2.script
-# RUN: not ld.lld -o %t2 --script %t2.script %t 2>&1 \
+# RUN: not ld.lld -o /dev/null --script %t2.script %t 2>&1 \
 # RUN:  | FileCheck -check-prefix=ERR %s
 # ERR: {{.*}}.script:1: memory region not defined: ram
 

Modified: lld/trunk/test/ELF/linkerscript/symbol-ordering-file.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/symbol-ordering-file.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/symbol-ordering-file.s (original)
+++ lld/trunk/test/ELF/linkerscript/symbol-ordering-file.s Mon Jul  2 10:48:23 2018
@@ -2,24 +2,24 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t.script
 
-# RUN: ld.lld %t.o --script %t.script -o %t.out
+# RUN: ld.lld %t.o --script %t.script -o /dev/null
 # RUN: llvm-objdump -s %t.out| FileCheck %s --check-prefix=BEFORE
 # BEFORE:      Contents of section .foo:
 # BEFORE-NEXT: 1122
 
 # RUN: echo "_foo2" > %t.ord
 # RUN: echo "_foo1" >> %t.ord
-# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t.script -o %t2.out
+# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t.script -o /dev/null
 # RUN: llvm-objdump -s %t2.out| FileCheck %s --check-prefix=AFTER
 # AFTER:      Contents of section .foo:
 # AFTER-NEXT: 2211
 
 # RUN: echo "SECTIONS { .text : { *(.text) } }" > %t2.script
-# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t2.script -o %t3.out
+# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t2.script -o /dev/null
 # RUN: llvm-objdump -s %t3.out| FileCheck %s --check-prefix=AFTER
 
 # RUN: echo "SECTIONS { .foo : { BYTE(0x33); *(.foo); BYTE(0x44) } }" > %t3.script
-# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t3.script -o %t4.out
+# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t3.script -o /dev/null
 # RUN: llvm-objdump -s %t4.out| FileCheck %s --check-prefix=COMMANDS
 # COMMANDS: Contents of section .foo:
 # COMMANDS-NEXT:  33221144

Modified: lld/trunk/test/ELF/llvm33-rela-outside-group.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/llvm33-rela-outside-group.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/llvm33-rela-outside-group.s (original)
+++ lld/trunk/test/ELF/llvm33-rela-outside-group.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // Input file generated with:
 // llvm33/llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %S/Inputs/llvm33-rela-outside-group.o
 //
-// RUN: ld.lld -shared %S/Inputs/llvm33-rela-outside-group.o %S/Inputs/llvm33-rela-outside-group.o -o %t
+// RUN: ld.lld -shared %S/Inputs/llvm33-rela-outside-group.o %S/Inputs/llvm33-rela-outside-group.o -o /dev/null
 
 	.global bar
 	.weak	_Z3fooIiEvv

Modified: lld/trunk/test/ELF/lto/data-ordering-lto.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/data-ordering-lto.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/data-ordering-lto.s (original)
+++ lld/trunk/test/ELF/lto/data-ordering-lto.s Mon Jul  2 10:48:23 2018
@@ -7,7 +7,7 @@
 # RUN: echo "dipsy " >> %t_order_lto.txt
 # RUN: echo "pat " >> %t_order_lto.txt
 
-# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t2.out
+# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o /dev/null
 # RUN: llvm-readelf -t %t2.out| FileCheck %s
 
 # Check that the order is tin -> dipsy -> pat.

Modified: lld/trunk/test/ELF/lto/symbol-ordering-lto.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/symbol-ordering-lto.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/symbol-ordering-lto.s (original)
+++ lld/trunk/test/ELF/lto/symbol-ordering-lto.s Mon Jul  2 10:48:23 2018
@@ -7,7 +7,7 @@
 # RUN: echo "_start " >> %t_order_lto.txt
 # RUN: echo "pat " >> %t_order_lto.txt
 
-# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t2.out
+# RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o /dev/null
 # RUN: llvm-readelf -t %t2.out| FileCheck %s
 
 # Check that the order is tin -> _start -> pat.

Modified: lld/trunk/test/ELF/map-file-i686.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/map-file-i686.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/map-file-i686.s (original)
+++ lld/trunk/test/ELF/map-file-i686.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t1.o
-// RUN: ld.lld %t1.o -o %t1 -M | FileCheck -strict-whitespace %s
+// RUN: ld.lld %t1.o -o /dev/null -M | FileCheck -strict-whitespace %s
 
 .global _start
 _start:

Modified: lld/trunk/test/ELF/map-gc-sections.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/map-gc-sections.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/map-gc-sections.s (original)
+++ lld/trunk/test/ELF/map-gc-sections.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o -o %t -Map=- --gc-sections | FileCheck %s
+// RUN: ld.lld %t.o -o /dev/null -Map=- --gc-sections | FileCheck %s
 
 .section .tbss,"awT", at nobits
 // CHECK-NOT: foo

Modified: lld/trunk/test/ELF/merge-string-empty.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/merge-string-empty.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/merge-string-empty.s (original)
+++ lld/trunk/test/ELF/merge-string-empty.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // Ensure that a mergeable string with size 0 does not cause any issue.
 
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o -o %t
+// RUN: ld.lld %t.o -o /dev/null
 
 .globl _start, s
 .section .rodata.str1.1,"aMS", at progbits,1

Modified: lld/trunk/test/ELF/merge-string-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/merge-string-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/merge-string-error.s (original)
+++ lld/trunk/test/ELF/merge-string-error.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
         .section	.rodata.str1.1,"aMS", at progbits,1
 	.asciz	"abc"

Modified: lld/trunk/test/ELF/merge-string-no-null.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/merge-string-no-null.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/merge-string-no-null.s (original)
+++ lld/trunk/test/ELF/merge-string-no-null.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 	.section	.rodata.str1.1,"aMS", at progbits,1
 	.ascii	"abc"

Modified: lld/trunk/test/ELF/mips-align-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-align-err.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-align-err.s (original)
+++ lld/trunk/test/ELF/mips-align-err.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # RUN:         -mcpu=mips32r6
 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
 # RUN:         -mcpu=mips32r6 %S/Inputs/mips-align-err.s -o %t2.o
-# RUN: not ld.lld %t.o %t2.o -o %t.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %t2.o -o /dev/null 2>&1 | FileCheck %s
 # CHECK: {{.*}}:(.text+0x1): improper alignment for relocation R_MIPS_PC16: 0xB is not aligned to 4 bytes
 
         .globl  __start

Modified: lld/trunk/test/ELF/mips-gnu-hash.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-gnu-hash.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-gnu-hash.s (original)
+++ lld/trunk/test/ELF/mips-gnu-hash.s Mon Jul  2 10:48:23 2018
@@ -2,10 +2,10 @@
 # Shouldn't allow the GNU hash style to be selected with the MIPS target.
 
 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t-be.o
-# RUN: not ld.lld -shared -hash-style=gnu %t-be.o -o %t-be.so 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared -hash-style=gnu %t-be.o -o /dev/null 2>&1 | FileCheck %s
 
 # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t-el.o
-# RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o %t-el.so 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: the .gnu.hash section is not compatible with the MIPS target.
 

Modified: lld/trunk/test/ELF/mips-n32-emul.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-n32-emul.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-n32-emul.s (original)
+++ lld/trunk/test/ELF/mips-n32-emul.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # is combined with non-N32 ABI object files.
 
 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
-# RUN: not ld.lld -m elf32btsmipn32 %t.o -o %t.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld -m elf32btsmipn32 %t.o -o /dev/null 2>&1 | FileCheck %s
 
   .text
   .global  __start

Modified: lld/trunk/test/ELF/mips-out-of-bounds-call16-reloc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-out-of-bounds-call16-reloc.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-out-of-bounds-call16-reloc.s (original)
+++ lld/trunk/test/ELF/mips-out-of-bounds-call16-reloc.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # Check that we create an error on an out-of-bounds R_MIPS_CALL_16
 
 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t1.o
-# RUN: not ld.lld %t1.o -o %t.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_MIPS_CALL16 out of range: 32768 is not in [-32768, 32767]
 

Modified: lld/trunk/test/ELF/mips-tls-64-pic-local-variable.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-tls-64-pic-local-variable.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-tls-64-pic-local-variable.s (original)
+++ lld/trunk/test/ELF/mips-tls-64-pic-local-variable.s Mon Jul  2 10:48:23 2018
@@ -18,7 +18,7 @@
 # RELOCS-NEXT:  0x20018 R_MIPS_TLS_DTPMOD64/R_MIPS_NONE/R_MIPS_NONE
 # RELOCS-NEXT: }
 
-# Test case generated using clang -mcpu=mips4 -target mips64-unknown-freebsd12.0 -fpic -O -G0 -EB -mabi=n64 -msoft-float -std=gnu99 -S %s -o %t.s
+# Test case generated using clang -mcpu=mips4 -target mips64-unknown-freebsd12.0 -fpic -O -G0 -EB -mabi=n64 -msoft-float -std=gnu99 -S %s -o /dev/null
 # from the following source:
 #
 # _Thread_local int x;

Modified: lld/trunk/test/ELF/multiple-cu.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/multiple-cu.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/multiple-cu.s (original)
+++ lld/trunk/test/ELF/multiple-cu.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/multiple-cu.s -o %t2.o
 # RUN: ld.lld -r -o %t.o %t1.o %t2.o
-# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK:      error: undefined symbol: foo
 # CHECK-NEXT: referenced by test1.c:2

Modified: lld/trunk/test/ELF/no-augmentation.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-augmentation.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-augmentation.s (original)
+++ lld/trunk/test/ELF/no-augmentation.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: mips
 // RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t.o
-// RUN: ld.lld --eh-frame-hdr %t.o -o %t | FileCheck -allow-empty %s
+// RUN: ld.lld --eh-frame-hdr %t.o -o /dev/null | FileCheck -allow-empty %s
 
 // CHECK-NOT: corrupted or unsupported CIE information
 // CHECK-NOT: corrupted CIE

Modified: lld/trunk/test/ELF/no-line-parser-errors-if-empty-section.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-line-parser-errors-if-empty-section.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-line-parser-errors-if-empty-section.s (original)
+++ lld/trunk/test/ELF/no-line-parser-errors-if-empty-section.s Mon Jul  2 10:48:23 2018
@@ -5,7 +5,7 @@
 # it, as that would result in errors from the parser.
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t.elf 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK-NOT: warning:
 # CHECK-NOT: error:

Modified: lld/trunk/test/ELF/no-line-parser-errors-if-no-section.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-line-parser-errors-if-no-section.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-line-parser-errors-if-no-section.s (original)
+++ lld/trunk/test/ELF/no-line-parser-errors-if-no-section.s Mon Jul  2 10:48:23 2018
@@ -5,7 +5,7 @@
 # it, as that would result in errors from the parser.
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t.elf 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK-NOT: warning:
 # CHECK-NOT: error:

Modified: lld/trunk/test/ELF/no-obj.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-obj.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-obj.s (original)
+++ lld/trunk/test/ELF/no-obj.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 // RUN: llvm-ar rcs %t.a %t.o
-// RUN: not ld.lld -o %t2 -u _start %t.a 2>&1 | FileCheck %s
+// RUN: not ld.lld -o /dev/null -u _start %t.a 2>&1 | FileCheck %s
 
 // CHECK: target emulation unknown: -m or at least one .o file required
 

Modified: lld/trunk/test/ELF/no-symtab.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-symtab.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-symtab.s (original)
+++ lld/trunk/test/ELF/no-symtab.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o %p/Inputs/no-symtab.o -o %t
+// RUN: ld.lld %t.o %p/Inputs/no-symtab.o -o /dev/null
 .global _start
 _start:

Modified: lld/trunk/test/ELF/no-undefined.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/no-undefined.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/no-undefined.s (original)
+++ lld/trunk/test/ELF/no-undefined.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: not ld.lld --no-undefined -shared %t -o %t.so
-# RUN: ld.lld -shared %t -o %t1.so
+# RUN: not ld.lld --no-undefined -shared %t -o /dev/null
+# RUN: ld.lld -shared %t -o /dev/null
 
 .globl _shared
 _shared:

Modified: lld/trunk/test/ELF/oformat-binary.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/oformat-binary.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/oformat-binary.s (original)
+++ lld/trunk/test/ELF/oformat-binary.s Mon Jul  2 10:48:23 2018
@@ -15,7 +15,7 @@
 # RUN: ld.lld -o %t2.out --script %t.script %t --oformat binary
 # RUN: od -t x1 -v %t2.out | FileCheck %s
 
-# RUN: not ld.lld -o %t3.out %t --oformat foo 2>&1 \
+# RUN: not ld.lld -o /dev/null %t --oformat foo 2>&1 \
 # RUN:   | FileCheck %s --check-prefix ERR
 # ERR: unknown --oformat value: foo
 

Modified: lld/trunk/test/ELF/ppc64-addr16-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-addr16-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-addr16-error.s (original)
+++ lld/trunk/test/ELF/ppc64-addr16-error.s Mon Jul  2 10:48:23 2018
@@ -2,11 +2,11 @@
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/ppc64-addr16-error.s -o %t2
-// RUN: not ld.lld -shared %t %t2 -o %t3 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-addr16-error.s -o %t2
-// RUN: not ld.lld -shared %t %t2 -o %t3 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck %s
 
 .short sym+65539
 

Modified: lld/trunk/test/ELF/pr34872.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/pr34872.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/pr34872.s (original)
+++ lld/trunk/test/ELF/pr34872.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # RUN: llvm-mc %p/Inputs/undefined-error.s -filetype=obj \
 # RUN:    -triple=x86_64-pc-linux -o %t2.o
 # RUN: ld.lld -shared %t2.o -o %t2.so
-# RUN: not ld.lld %t2.so %t.o -o %t.out 2>&1 | FileCheck %s
+# RUN: not ld.lld %t2.so %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: undefined symbol: fmod
 # Check we're not emitting other diagnostics for this symbol.

Modified: lld/trunk/test/ELF/relocation-dtrace.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-dtrace.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-dtrace.test (original)
+++ lld/trunk/test/ELF/relocation-dtrace.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld -shared %t.o -o %t.so
+# RUN: ld.lld -shared %t.o -o /dev/null
 
 # Test that we can handle R_X86_64_NONE as produced by dtrace.
 

Modified: lld/trunk/test/ELF/relocation-nocopy.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-nocopy.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-nocopy.s (original)
+++ lld/trunk/test/ELF/relocation-nocopy.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/relocation-copy.s -o %t2.o
 // RUN: ld.lld -shared %t2.o -o %t.so
-// RUN: not ld.lld -z nocopyreloc %t.o %t.so -o %t3 2>&1 | FileCheck %s
+// RUN: not ld.lld -z nocopyreloc %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: unresolvable relocation R_X86_64_32S against symbol 'x'
 // CHECK: unresolvable relocation R_X86_64_32S against symbol 'y'

Modified: lld/trunk/test/ELF/relocation-none-aarch64.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-none-aarch64.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-none-aarch64.test (original)
+++ lld/trunk/test/ELF/relocation-none-aarch64.test Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: aarch64
 
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld %t.o -o %t.out
+# RUN: ld.lld %t.o -o /dev/null
 
 !ELF
 FileHeader:

Modified: lld/trunk/test/ELF/relocation-none-i686.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-none-i686.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-none-i686.test (original)
+++ lld/trunk/test/ELF/relocation-none-i686.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t.o
-# RUN: ld.lld %t.o -o %t.out
+# RUN: ld.lld %t.o -o /dev/null
 
 # Test that we can handle R_386_NONE.
 

Modified: lld/trunk/test/ELF/relocation-past-merge-end.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-past-merge-end.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-past-merge-end.s (original)
+++ lld/trunk/test/ELF/relocation-past-merge-end.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 // CHECK: relocation-past-merge-end.s.tmp.o:(.foo): entry is past the end of the section
 
 .data

Modified: lld/trunk/test/ELF/relocation-relative-absolute.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-relative-absolute.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-relative-absolute.s (original)
+++ lld/trunk/test/ELF/relocation-relative-absolute.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %tinput1.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \
 # RUN:   %S/Inputs/relocation-relative-absolute.s -o %tinput2.o
-# RUN: not ld.lld %tinput1.o %tinput2.o -o %t -pie 2>&1 | FileCheck %s
+# RUN: not ld.lld %tinput1.o %tinput2.o -o /dev/null -pie 2>&1 | FileCheck %s
 
 .globl _start
 _start:

Modified: lld/trunk/test/ELF/relocation-size-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relocation-size-err.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relocation-size-err.s (original)
+++ lld/trunk/test/ELF/relocation-size-err.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 // CHECK:  error: can't create dynamic relocation R_X86_64_SIZE64 against symbol: foo in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
 

Modified: lld/trunk/test/ELF/relro-script.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/relro-script.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/relro-script.s (original)
+++ lld/trunk/test/ELF/relro-script.s Mon Jul  2 10:48:23 2018
@@ -16,7 +16,7 @@
 // RUN: .got.plt : { *(.got.plt) } \
 // RUN: } " > %t.script
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3.o
-// RUN: ld.lld %t3.o %t.so -o %t --script=%t.script --print-map | FileCheck %s
+// RUN: ld.lld %t3.o %t.so -o /dev/null --script=%t.script --print-map | FileCheck %s
 
 // CHECK: .data.rel.ro
 // CHECK-NEXT: <internal>:(.bss.rel.ro)

Modified: lld/trunk/test/ELF/section-align-0.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-align-0.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-align-0.test (original)
+++ lld/trunk/test/ELF/section-align-0.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t
-# RUN: ld.lld %t -o %tout
+# RUN: ld.lld %t -o /dev/null
 
 # Verify that lld can handle sections with an alignment of zero.
 

Modified: lld/trunk/test/ELF/section-metadata-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-metadata-err.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-metadata-err.s (original)
+++ lld/trunk/test/ELF/section-metadata-err.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}section-metadata-err.s.tmp.o:(.foo)
 

Modified: lld/trunk/test/ELF/section-metadata-err2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-metadata-err2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-metadata-err2.s (original)
+++ lld/trunk/test/ELF/section-metadata-err2.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 ## Check we do not crash and report proper errors.
 # CHECK: error: a section .bar with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}section-metadata-err2.s.tmp.o:(.foo)

Modified: lld/trunk/test/ELF/section-metadata-err3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-metadata-err3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-metadata-err3.s (original)
+++ lld/trunk/test/ELF/section-metadata-err3.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK:      error: incompatible section flags for .bar
 # CHECK-NEXT: >>> {{.*}}section-metadata-err3.s.tmp.o:(.bar): 0x2

Modified: lld/trunk/test/ELF/section-symbols.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-symbols.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-symbols.test (original)
+++ lld/trunk/test/ELF/section-symbols.test Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # RUN: yaml2obj %s -o %t
-# RUN: ld.lld -shared %t -o %tout
+# RUN: ld.lld -shared %t -o /dev/null
 
 # Verify that lld can handle STT_SECTION symbols associated
 # with SHT_REL[A]/SHT_SYMTAB/SHT_STRTAB sections.

Modified: lld/trunk/test/ELF/sectionstart.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/sectionstart.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/sectionstart.s (original)
+++ lld/trunk/test/ELF/sectionstart.s Mon Jul  2 10:48:23 2018
@@ -35,11 +35,11 @@
 # RUN: llvm-objdump -section-headers %t4 | FileCheck %s
 
 ## Errors:
-# RUN: not ld.lld %t.o --section-start .text100000 -o %t2 2>&1 \
+# RUN: not ld.lld %t.o --section-start .text100000 -o /dev/null 2>&1 \
 # RUN:    | FileCheck -check-prefix=ERR1 %s
 # ERR1: invalid argument: --section-start .text100000
 
-# RUN: not ld.lld %t.o --section-start .text=1Q0000 -o %t3 2>&1 \
+# RUN: not ld.lld %t.o --section-start .text=1Q0000 -o /dev/null 2>&1 \
 # RUN:    | FileCheck -check-prefix=ERR2 %s
 # ERR2: invalid argument: --section-start .text=1Q0000
 

Modified: lld/trunk/test/ELF/splitstacks.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/splitstacks.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/splitstacks.s (original)
+++ lld/trunk/test/ELF/splitstacks.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
 
-# RUN: not ld.lld %t1.o -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s
 # CHECK: .o: object file compiled with -fsplit-stack is not supported
 
 .globl _start

Modified: lld/trunk/test/ELF/symbol-ordering-file.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/symbol-ordering-file.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/symbol-ordering-file.s (original)
+++ lld/trunk/test/ELF/symbol-ordering-file.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t.out
+# RUN: ld.lld %t.o -o /dev/null
 # RUN: llvm-objdump -s %t.out| FileCheck %s --check-prefix=BEFORE
 
 # BEFORE:      Contents of section .foo:

Modified: lld/trunk/test/ELF/symver-archive.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/symver-archive.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/symver-archive.s (original)
+++ lld/trunk/test/ELF/symver-archive.s Mon Jul  2 10:48:23 2018
@@ -4,7 +4,7 @@
 # RUN: llvm-ar rcs %t.a %t1
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive1.s -o %t2.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symver-archive2.s -o %t3.o
-# RUN: ld.lld -o %t.out %t2.o %t3.o %t.a
+# RUN: ld.lld -o /dev/null %t2.o %t3.o %t.a
 
 .text
 .globl x

Modified: lld/trunk/test/ELF/tls-archive.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/tls-archive.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/tls-archive.s (original)
+++ lld/trunk/test/ELF/tls-archive.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-mismatch.s -o %t2
 // RUN: rm -f %t.a
 // RUN: llvm-ar cru %t.a %t2
-// RUN: ld.lld %t.a %t -o %t3
+// RUN: ld.lld %t.a %t -o /dev/null
 
 .globl _start,tlsvar
 _start:

Modified: lld/trunk/test/ELF/tls-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/tls-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/tls-error.s (original)
+++ lld/trunk/test/ELF/tls-error.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-// RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s
+// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
 // CHECK: R_X86_64_TPOFF32 out of range
 
 .global _start

Modified: lld/trunk/test/ELF/tls-in-archive.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/tls-in-archive.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/tls-in-archive.s (original)
+++ lld/trunk/test/ELF/tls-in-archive.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-in-archive.s -o %t1.o
 // RUN: llvm-ar cru %t.a %t1.o
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
-// RUN: ld.lld %t2.o %t.a -o %tout
+// RUN: ld.lld %t2.o %t.a -o /dev/null
 
         .globl  _start
 _start:

Modified: lld/trunk/test/ELF/tls-mismatch.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/tls-mismatch.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/tls-mismatch.s (original)
+++ lld/trunk/test/ELF/tls-mismatch.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-mismatch.s -o %t2
-// RUN: not ld.lld %t %t2 -o %t3 2>&1 | FileCheck %s
+// RUN: not ld.lld %t %t2 -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: TLS attribute mismatch: tlsvar
 // CHECK: >>> defined in

Modified: lld/trunk/test/ELF/trace-symbols.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/trace-symbols.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/trace-symbols.s (original)
+++ lld/trunk/test/ELF/trace-symbols.s Mon Jul  2 10:48:23 2018
@@ -29,7 +29,7 @@
 # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \
 # RUN:   %t %t1 %t2 -o %t3 2>&1 | FileCheck -check-prefix=OBJECTD2FOO %s
 # RUN: ld.lld -y foo -y common --trace-symbol=hsymbol \
-# RUN:   %t %t2 %t1 -o %t4 2>&1 | FileCheck -check-prefix=OBJECTD2FOO %s
+# RUN:   %t %t2 %t1 -o /dev/null 2>&1 | FileCheck -check-prefix=OBJECTD2FOO %s
 # RUN: ld.lld -y foo -y common %t %t1.so %t2 -o %t3 2>&1 | \
 # RUN:   FileCheck -check-prefix=OBJECTD2FOO %s
 # OBJECTD2FOO: trace-symbols.s.tmp2: definition of foo

Modified: lld/trunk/test/ELF/typed-undef.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/typed-undef.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/typed-undef.s (original)
+++ lld/trunk/test/ELF/typed-undef.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # We used to crash on this, check that we don't
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t -pie --unresolved-symbols=ignore-all
+# RUN: ld.lld %t.o -o /dev/null -pie --unresolved-symbols=ignore-all
 
         .global _start
 _start:

Modified: lld/trunk/test/ELF/undef-broken-debug.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef-broken-debug.test?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef-broken-debug.test (original)
+++ lld/trunk/test/ELF/undef-broken-debug.test Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: yaml2obj %s -o %t.o
-# RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # The debug info has a broken relocation. Check that we don't crash
 # and still report the undefined symbol.

Modified: lld/trunk/test/ELF/undef-shared.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef-shared.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef-shared.s (original)
+++ lld/trunk/test/ELF/undef-shared.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 # CHECK: error: undefined symbol: hidden
 # CHECK: >>> referenced by {{.*}}:(.data+0x0)

Modified: lld/trunk/test/ELF/undef-start.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef-start.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef-start.s (original)
+++ lld/trunk/test/ELF/undef-start.s Mon Jul  2 10:48:23 2018
@@ -1,5 +1,5 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t 2>&1 | FileCheck %s
+# RUN: ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: warning: cannot find entry symbol _start

Modified: lld/trunk/test/ELF/unresolved-symbols.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/unresolved-symbols.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/unresolved-symbols.s (original)
+++ lld/trunk/test/ELF/unresolved-symbols.s Mon Jul  2 10:48:23 2018
@@ -21,7 +21,7 @@
 ## case when --no-undefined specified.
 # RUN: ld.lld %t2.o -o %t1_1 --unresolved-symbols=ignore-all
 # RUN: llvm-readobj %t1_1 > /dev/null 2>&1
-# RUN: not ld.lld %t2.o -o %t1_2 --unresolved-symbols=ignore-all --no-undefined 2>&1 | \
+# RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=ignore-all --no-undefined 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERRUND %s
 # ERRUND: error: undefined symbol: undef
 # ERRUND: >>> referenced by {{.*}}:(.text+0x1)
@@ -34,11 +34,11 @@
 # RUN: ld.lld %t1.o %t2.o -o %t2 --unresolved-symbols=ignore-in-object-files
 # RUN: llvm-readobj %t2 > /dev/null 2>&1
 ## And still should not should produce for undefines from DSOs.
-# RUN: ld.lld %t1.o %t.so -o %t2_1 --unresolved-symbols=ignore-in-object-files
+# RUN: ld.lld %t1.o %t.so -o /dev/null --unresolved-symbols=ignore-in-object-files
 # RUN: llvm-readobj %t2 > /dev/null 2>&1
 
 ## Ignoring undefines in shared should produce error for symbol from object.
-# RUN: not ld.lld %t2.o -o %t3 --unresolved-symbols=ignore-in-shared-libs 2>&1 | \
+# RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=ignore-in-shared-libs 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERRUND %s
 ## And should not produce errors for symbols from DSO.
 # RUN: ld.lld %t1.o %t.so -o %t3_1 --unresolved-symbols=ignore-in-shared-libs
@@ -60,9 +60,9 @@
 # RUN: llvm-readobj %t6 > /dev/null 2>&1
 # RUN: ld.lld -shared %t1.o %t.so -o %t6_1
 # RUN: llvm-readobj %t6_1 > /dev/null 2>&1
-# RUN: not ld.lld %t2.o -o %t7 --unresolved-symbols=report-all 2>&1 | \
+# RUN: not ld.lld %t2.o -o /dev/null --unresolved-symbols=report-all 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERRUND %s
-# RUN: not ld.lld %t2.o -o %t7_1 2>&1 | FileCheck -check-prefix=ERRUND %s
+# RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck -check-prefix=ERRUND %s
 
 .globl _start
 _start:

Modified: lld/trunk/test/ELF/user_def_init_array_start.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/user_def_init_array_start.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/user_def_init_array_start.s (original)
+++ lld/trunk/test/ELF/user_def_init_array_start.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-// RUN: ld.lld %t.o -o %t2.so -shared
+// RUN: ld.lld %t.o -o /dev/null -shared
 // Allow user defined __init_array_start. This is used by musl because of the
 // the bfd linker not handling these properly. We always create them as
 // hidden, musl should not have problems with lld.

Modified: lld/trunk/test/ELF/verneed-local.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verneed-local.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/verneed-local.s (original)
+++ lld/trunk/test/ELF/verneed-local.s Mon Jul  2 10:48:23 2018
@@ -4,7 +4,7 @@
 # RUN: ld.lld -shared %t1.o --version-script %t.script -o %t.so
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o %t.so -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: undefined symbol: f3
 # CHECK: >>> referenced by {{.*}}:(.text+0x1)

Modified: lld/trunk/test/ELF/version-script-complex-wildcards.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-complex-wildcards.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-complex-wildcards.s (original)
+++ lld/trunk/test/ELF/version-script-complex-wildcards.s Mon Jul  2 10:48:23 2018
@@ -46,7 +46,7 @@
 # RUN: llvm-readobj -V %t8.so | FileCheck %s --check-prefix=ABBABC
 
 # RUN: echo "FOO { global: extern \"C++\" { a[; }; };" > %t9.script
-# RUN: not ld.lld --version-script %t9.script -shared %t.o -o %t9.so 2>&1 \
+# RUN: not ld.lld --version-script %t9.script -shared %t.o -o /dev/null 2>&1 \
 # RUN:   | FileCheck %s --check-prefix=ERROR
 # ERROR: invalid glob pattern: a[
 

Modified: lld/trunk/test/ELF/version-script-glob.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-glob.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-glob.s (original)
+++ lld/trunk/test/ELF/version-script-glob.s Mon Jul  2 10:48:23 2018
@@ -48,7 +48,7 @@ local:
 # CHECK-NEXT: ]
 
 # RUN: echo "{ global : local; local: *; };" > %t1.script
-# RUN: ld.lld -shared --version-script %t1.script %t.o -o %t1.so
+# RUN: ld.lld -shared --version-script %t1.script %t.o -o /dev/null
 
 # LOCAL:      DynamicSymbols [
 # LOCAL-NEXT:   Symbol {

Modified: lld/trunk/test/ELF/version-script-missing.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-missing.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-missing.s (original)
+++ lld/trunk/test/ELF/version-script-missing.s Mon Jul  2 10:48:23 2018
@@ -4,4 +4,4 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "{ foobar; };" > %t.script
-# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
+# RUN: ld.lld --version-script %t.script -shared %t.o -o /dev/null

Modified: lld/trunk/test/ELF/version-script-no-warn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-no-warn.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-no-warn.s (original)
+++ lld/trunk/test/ELF/version-script-no-warn.s Mon Jul  2 10:48:23 2018
@@ -5,7 +5,7 @@
 # RUN: ld.lld -shared %t2.o -soname shared -o %t2.so
 
 # RUN: echo "foo { global: bar;  local: *; };" > %t.script
-# RUN: ld.lld --fatal-warnings --shared --version-script %t.script %t.o %t2.so -o %t.out
+# RUN: ld.lld --fatal-warnings --shared --version-script %t.script %t.o %t2.so -o /dev/null
 
 .global bar
 bar:

Modified: lld/trunk/test/ELF/version-script-no-warn2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-no-warn2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-no-warn2.s (original)
+++ lld/trunk/test/ELF/version-script-no-warn2.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # RUN: ld.lld %t1.o -o %t1.so -shared
 # RUN: echo "{ global: foo; local:  *; };" > %t.script
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
-# RUN: ld.lld -shared --version-script %t.script %t2.o %t1.so -o %t2.so --fatal-warnings
+# RUN: ld.lld -shared --version-script %t.script %t2.o %t1.so -o /dev/null --fatal-warnings
 
 .global	foo
 foo:

Modified: lld/trunk/test/ELF/version-script-symver.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-symver.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-symver.s (original)
+++ lld/trunk/test/ELF/version-script-symver.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o /dev/null
 
 .global _start
 .global bar

Modified: lld/trunk/test/ELF/version-script.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script.s (original)
+++ lld/trunk/test/ELF/version-script.s Mon Jul  2 10:48:23 2018
@@ -34,7 +34,7 @@
 
 # RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t6.script
 # RUN: echo "VERSION_2.0 { global: foo1; local: *; };" >> %t6.script
-# RUN: not ld.lld --version-script %t6.script -shared %t.o %t2.so -o %t6.so 2>&1 | \
+# RUN: not ld.lld --version-script %t6.script -shared %t.o %t2.so -o /dev/null 2>&1 | \
 # RUN:   FileCheck -check-prefix=ERR3 %s
 # ERR3: duplicate symbol 'foo1' in version script
 
@@ -214,7 +214,7 @@
 # ALL-NEXT: ]
 
 # RUN: echo "VERSION_1.0 { global: foo1; foo1; local: *; };" > %t8.script
-# RUN: ld.lld --version-script %t8.script -shared %t.o -o %t8.so --fatal-warnings
+# RUN: ld.lld --version-script %t8.script -shared %t.o -o /dev/null --fatal-warnings
 
 .globl foo1
 foo1:

Modified: lld/trunk/test/ELF/version-symbol-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-symbol-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-symbol-error.s (original)
+++ lld/trunk/test/ELF/version-symbol-error.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
 // RUN: echo "V1 {};" > %t.script
-// RUN: not ld.lld -shared -version-script=%t.script %t.o -o %t.so 2>&1 \
+// RUN: not ld.lld -shared -version-script=%t.script %t.o -o /dev/null 2>&1 \
 // RUN:   | FileCheck %s
 
 // CHECK: .o: symbol foo at V2 has undefined version V2

Modified: lld/trunk/test/ELF/version-undef-sym.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-undef-sym.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-undef-sym.s (original)
+++ lld/trunk/test/ELF/version-undef-sym.s Mon Jul  2 10:48:23 2018
@@ -35,7 +35,7 @@
 // CHECK: Name: bar
 
 // But now we can successfully find bar.
-// RUN: ld.lld %t.o %p/Inputs/version-undef-sym.so -o %t.exe
+// RUN: ld.lld %t.o %p/Inputs/version-undef-sym.so -o /dev/null
 
         .global _start
 _start:

Modified: lld/trunk/test/ELF/warn-backrefs.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/warn-backrefs.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/warn-backrefs.s (original)
+++ lld/trunk/test/ELF/warn-backrefs.s Mon Jul  2 10:48:23 2018
@@ -37,11 +37,11 @@
 
 # RUN: echo ".globl bar; bar:" | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t3.o
 # RUN: echo ".globl foo; foo: call bar" | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t4.o
-# RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o --start-lib %t3.o %t4.o --end-lib -o %t.exe
+# RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o --start-lib %t3.o %t4.o --end-lib -o /dev/null
 
 # We don't report backward references to weak symbols as they can be overriden later.
 # RUN: echo ".weak foo; foo:" | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t5.o
-# RUN: ld.lld --fatal-warnings --warn-backrefs --start-lib %t5.o --end-lib %t1.o %t2.o -o %t.exe
+# RUN: ld.lld --fatal-warnings --warn-backrefs --start-lib %t5.o --end-lib %t1.o %t2.o -o /dev/null
 
 .globl _start, foo
 _start:

Modified: lld/trunk/test/ELF/warn-unresolved-symbols-hidden.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/warn-unresolved-symbols-hidden.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/warn-unresolved-symbols-hidden.s (original)
+++ lld/trunk/test/ELF/warn-unresolved-symbols-hidden.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld -shared %t.o -o %t.so -z defs --warn-unresolved-symbols 2>&1| FileCheck %s
+# RUN: not ld.lld -shared %t.o -o /dev/null -z defs --warn-unresolved-symbols 2>&1| FileCheck %s
 
 # CHECK: warning: undefined symbol: foo
 # CHECK: error: undefined symbol: bar

Modified: lld/trunk/test/ELF/warn-unresolved-symbols.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/warn-unresolved-symbols.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/warn-unresolved-symbols.s (original)
+++ lld/trunk/test/ELF/warn-unresolved-symbols.s Mon Jul  2 10:48:23 2018
@@ -2,11 +2,11 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
 
 ## The link should fail with an undef error by default
-# RUN: not ld.lld %t1.o -o %t3 2>&1 | \
+# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | \
 # RUN: FileCheck -check-prefix=ERRUND %s
 
 ## --error-unresolved-symbols should generate an error
-# RUN: not ld.lld %t1.o -o %t4 --error-unresolved-symbols 2>&1 | \
+# RUN: not ld.lld %t1.o -o /dev/null --error-unresolved-symbols 2>&1 | \
 # RUN: FileCheck -check-prefix=ERRUND %s
 
 ## --warn-unresolved-symbols should generate a warning
@@ -16,19 +16,19 @@
 ## Test that the last option wins
 # RUN: ld.lld %t1.o -o %t5 --error-unresolved-symbols --warn-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -check-prefix=WARNUND %s
-# RUN: not ld.lld %t1.o -o %t6 --warn-unresolved-symbols --error-unresolved-symbols 2>&1 | \
+# RUN: not ld.lld %t1.o -o /dev/null --warn-unresolved-symbols --error-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -check-prefix=ERRUND %s
 
 ## Do not report undefines if linking relocatable or shared.
 ## And while we're at it, check that we can accept single -
 ## variants of these options.
-# RUN: ld.lld -r %t1.o -o %t7 -error-unresolved-symbols 2>&1 | \
+# RUN: ld.lld -r %t1.o -o /dev/null -error-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -allow-empty -check-prefix=NOERR %s
-# RUN: ld.lld -shared %t1.o -o %t8.so --error-unresolved-symbols 2>&1 | \
+# RUN: ld.lld -shared %t1.o -o /dev/null --error-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -allow-empty -check-prefix=NOERR %s
-# RUN: ld.lld -r %t1.o -o %t9 -warn-unresolved-symbols 2>&1 | \
+# RUN: ld.lld -r %t1.o -o /dev/null -warn-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -allow-empty -check-prefix=NOWARN %s
-# RUN: ld.lld -shared %t1.o -o %t10.so --warn-unresolved-symbols 2>&1 | \
+# RUN: ld.lld -shared %t1.o -o /dev/null --warn-unresolved-symbols 2>&1 | \
 # RUN:  FileCheck -allow-empty -check-prefix=NOWARN %s
 
 # ERRUND: error: undefined symbol: undef

Modified: lld/trunk/test/ELF/weak-undef-lazy.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/weak-undef-lazy.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/weak-undef-lazy.s (original)
+++ lld/trunk/test/ELF/weak-undef-lazy.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/weak-undef-lazy.s -o %t2.o
 # RUN: rm -f %t2.a
 # RUN: llvm-ar rc %t2.a %t2.o
-# RUN: ld.lld %t.o %t2.a -o %t --export-dynamic
+# RUN: ld.lld %t.o %t2.a -o /dev/null --export-dynamic
 
         .global _start
 _start:

Modified: lld/trunk/test/ELF/whole-archive-name.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/whole-archive-name.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/whole-archive-name.s (original)
+++ lld/trunk/test/ELF/whole-archive-name.s Mon Jul  2 10:48:23 2018
@@ -3,7 +3,7 @@
 // RUN: mkdir -p %t.dir
 // RUN: rm -f %t.dir/liba.a
 // RUN: llvm-ar rcs %t.dir/liba.a %t.o
-// RUN: ld.lld -L%t.dir --whole-archive -la -o %t -Map=- | FileCheck %s
+// RUN: ld.lld -L%t.dir --whole-archive -la -o /dev/null -Map=- | FileCheck %s
 
 .globl _start
 _start:

Modified: lld/trunk/test/ELF/writable-merge.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/writable-merge.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/writable-merge.s (original)
+++ lld/trunk/test/ELF/writable-merge.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
 // CHECK: writable SHF_MERGE section is not supported
 
 .section .foo,"awM", at progbits,4

Modified: lld/trunk/test/ELF/x86-64-dyn-rel-error2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-dyn-rel-error2.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-dyn-rel-error2.s (original)
+++ lld/trunk/test/ELF/x86-64-dyn-rel-error2.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
 // RUN: ld.lld %t2.o -shared -o %t2.so
-// RUN: not ld.lld -shared %t.o %t2.so -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
 
 // CHECK: relocation R_X86_64_PC32 cannot be used against symbol zed; recompile with -fPIC
 // CHECK: >>> defined in {{.*}}.so

Modified: lld/trunk/test/ELF/x86-64-dyn-rel-error3.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-dyn-rel-error3.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-dyn-rel-error3.s (original)
+++ lld/trunk/test/ELF/x86-64-dyn-rel-error3.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -shared -o %t.so 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -shared -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_X86_64_8 cannot be used against symbol foo; recompile with -fPIC
 # CHECK: relocation R_X86_64_16 cannot be used against symbol foo; recompile with -fPIC

Modified: lld/trunk/test/ELF/x86-64-reloc-16.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-16.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-16.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-16.s Mon Jul  2 10:48:23 2018
@@ -3,12 +3,12 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-16.s -o %t1
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-16-error.s -o %t2
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: ld.lld -shared %t %t1 -o %t3
+// RUN: ld.lld -shared %t %t1 -o /dev/null
 
 // CHECK:      Contents of section .text:
 // CHECK-NEXT:   200000 42
 
-// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_X86_64_16 out of range: 65536 is not in [0, 65535]
 
 .short foo

Modified: lld/trunk/test/ELF/x86-64-reloc-32-fpic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-32-fpic.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-32-fpic.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-32-fpic.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_X86_64_32 cannot be used against symbol _shared; recompile with -fPIC
 # CHECK: >>> defined in {{.*}}

Modified: lld/trunk/test/ELF/x86-64-reloc-8.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-8.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-8.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-8.s Mon Jul  2 10:48:23 2018
@@ -3,12 +3,12 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-8.s -o %t1
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-8-error.s -o %t2
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: ld.lld -shared %t %t1 -o %t3
+// RUN: ld.lld -shared %t %t1 -o /dev/null
 
 // CHECK:      Contents of section .text:
 // CHECK-NEXT:   200000 42
 
-// RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
+// RUN: not ld.lld -shared %t %t2 -o /dev/null 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_X86_64_8 out of range: 256 is not in [0, 255]
 
 .byte foo

Modified: lld/trunk/test/ELF/x86-64-reloc-debug-overflow.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-debug-overflow.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-debug-overflow.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-debug-overflow.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %tabs %t -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: (.debug_info+0x0): relocation R_X86_64_32 out of range: 281474976710656 is not in [0, 4294967295]; consider recompiling with -fdebug-types-section to reduce size of debug sections
 

Modified: lld/trunk/test/ELF/x86-64-reloc-error-reporting.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-error-reporting.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-error-reporting.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-error-reporting.s Mon Jul  2 10:48:23 2018
@@ -8,7 +8,7 @@
 // And the easy way to do that is to trigger GC. That way .text.dumb
 // be collected and mentioned check will execute.
 
-// RUN: not ld.lld -gc-sections -shared %tabs %t -o %t2
+// RUN: not ld.lld -gc-sections -shared %tabs %t -o /dev/null
 
 .section .text.dumb,"ax"
  nop

Modified: lld/trunk/test/ELF/x86-64-reloc-error.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-error.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-error.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-error.s Mon Jul  2 10:48:23 2018
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %tabs %t -o /dev/null 2>&1 | FileCheck %s
 
   movl $big, %edx
   movq $foo - 0x1000000000000, %rdx

Modified: lld/trunk/test/ELF/x86-64-reloc-pc32-fpic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-pc32-fpic.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-pc32-fpic.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-pc32-fpic.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
+# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_X86_64_PC32 cannot be used against symbol _shared; recompile with -fPIC
 # CHECK: >>> defined in {{.*}}

Modified: lld/trunk/test/ELF/x86-64-reloc-range.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-range.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-range.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-range.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 // REQUIRES: x86
 // RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
-// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
+// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
 
 // CHECK: {{.*}}:(.text+0x3): relocation R_X86_64_PC32 out of range: 2147483648 is not in [-2147483648, 2147483647]
 // CHECK-NOT: relocation

Modified: lld/trunk/test/ELF/x86-64-reloc-tpoff32-fpic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/x86-64-reloc-tpoff32-fpic.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/x86-64-reloc-tpoff32-fpic.s (original)
+++ lld/trunk/test/ELF/x86-64-reloc-tpoff32-fpic.s Mon Jul  2 10:48:23 2018
@@ -1,6 +1,6 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: not ld.lld %t.o -shared -o %t.so 2>&1 | FileCheck %s
+# RUN: not ld.lld %t.o -shared -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: relocation R_X86_64_TPOFF32 cannot be used against symbol var; recompile with -fPIC
 # CHECK: >>> defined in {{.*}}.o

Modified: lld/trunk/test/ELF/znotext-plt-relocations-protected.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/znotext-plt-relocations-protected.s?rev=336129&r1=336128&r2=336129&view=diff
==============================================================================
--- lld/trunk/test/ELF/znotext-plt-relocations-protected.s (original)
+++ lld/trunk/test/ELF/znotext-plt-relocations-protected.s Mon Jul  2 10:48:23 2018
@@ -2,7 +2,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/znotext-plt-relocations-protected.s -o %t2.o
 # RUN: ld.lld %t2.o -o %t2.so -shared
-# RUN: not ld.lld -z notext %t.o %t2.so -o %t 2>&1 | FileCheck %s
+# RUN: not ld.lld -z notext %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
 
 # CHECK: error: cannot preempt symbol: foo
 




More information about the llvm-commits mailing list