[llvm] r336131 - Replace unused output filenames with /dev/null in tests
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 2 11:16:44 PDT 2018
Author: maskray
Date: Mon Jul 2 11:16:44 2018
New Revision: 336131
URL: http://llvm.org/viewvc/llvm-project?rev=336131&view=rev
Log:
Replace unused output filenames with /dev/null in tests
Similar to rLLD336129
Modified:
llvm/trunk/test/MC/AArch64/ldr-pseudo-obj-errors.s
llvm/trunk/test/MC/ELF/dwo-restrict-relocs.s
llvm/trunk/test/tools/dsymutil/ARM/fat-arch-name.test
llvm/trunk/test/tools/dsymutil/ARM/fat-threading.test
llvm/trunk/test/tools/llvm-mc/basic.test
llvm/trunk/test/tools/llvm-mca/X86/in-order-cpu.s
llvm/trunk/test/tools/llvm-mca/X86/invalid-cpu.s
llvm/trunk/test/tools/llvm-mca/X86/invalid-empty-file.s
llvm/trunk/test/tools/llvm-mca/invalid_input_file_name.test
Modified: llvm/trunk/test/MC/AArch64/ldr-pseudo-obj-errors.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/ldr-pseudo-obj-errors.s?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/MC/AArch64/ldr-pseudo-obj-errors.s (original)
+++ llvm/trunk/test/MC/AArch64/ldr-pseudo-obj-errors.s Mon Jul 2 11:16:44 2018
@@ -1,4 +1,4 @@
-//RUN: not llvm-mc -triple=aarch64-linux -filetype=obj %s -o %t1 2> %t2
+//RUN: not llvm-mc -triple=aarch64-linux -filetype=obj %s -o /dev/null 2> %t2
//RUN: cat %t2 | FileCheck %s
//These tests look for errors that should be reported for invalid object layout
Modified: llvm/trunk/test/MC/ELF/dwo-restrict-relocs.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/dwo-restrict-relocs.s?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/dwo-restrict-relocs.s (original)
+++ llvm/trunk/test/MC/ELF/dwo-restrict-relocs.s Mon Jul 2 11:16:44 2018
@@ -1,4 +1,4 @@
-// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t1 -split-dwarf-file %t2 2>&1 | FileCheck %s
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null -split-dwarf-file %t2 2>&1 | FileCheck %s
// CHECK: error: A relocation may not refer to a dwo section
.quad .foo.dwo
Modified: llvm/trunk/test/tools/dsymutil/ARM/fat-arch-name.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/ARM/fat-arch-name.test?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/dsymutil/ARM/fat-arch-name.test (original)
+++ llvm/trunk/test/tools/dsymutil/ARM/fat-arch-name.test Mon Jul 2 11:16:44 2018
@@ -1,5 +1,5 @@
# REQUIRES: object-emission
-# RUN: dsymutil -no-output %p/../Inputs/fat-test.arm.dylib -o %t.dSYM -verbose 2>&1 | FileCheck %s
+# RUN: dsymutil -no-output %p/../Inputs/fat-test.arm.dylib -o /dev/null -verbose 2>&1 | FileCheck %s
# We detect thumb triples from the binaries, because those are the only ones
# that are guaranteed to be able to generate a Target instance (for example
Modified: llvm/trunk/test/tools/dsymutil/ARM/fat-threading.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/ARM/fat-threading.test?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/dsymutil/ARM/fat-threading.test (original)
+++ llvm/trunk/test/tools/dsymutil/ARM/fat-threading.test Mon Jul 2 11:16:44 2018
@@ -1,4 +1,4 @@
# REQUIRES: object-emission
# By default, dsymutil spawns one thread per architecture and this test just
# ensures that things don't break when processing multiple archs.
-# RUN: dsymutil -no-output %p/../Inputs/fat-test.arm.dylib -o %t.brief.dSYM 2>&1
+# RUN: dsymutil -no-output %p/../Inputs/fat-test.arm.dylib -o /dev/null 2>&1
Modified: llvm/trunk/test/tools/llvm-mc/basic.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mc/basic.test?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mc/basic.test (original)
+++ llvm/trunk/test/tools/llvm-mc/basic.test Mon Jul 2 11:16:44 2018
@@ -1,3 +1,3 @@
-# RUN: not llvm-mc %t.blah -o %t2 2>&1 | FileCheck --check-prefix=ENOENT %s
+# RUN: not llvm-mc %t.blah -o /dev/null 2>&1 | FileCheck --check-prefix=ENOENT %s
# ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
Modified: llvm/trunk/test/tools/llvm-mca/X86/in-order-cpu.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/in-order-cpu.s?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/in-order-cpu.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/in-order-cpu.s Mon Jul 2 11:16:44 2018
@@ -1,3 +1,3 @@
-# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=atom -o %t1 2>&1 | FileCheck %s
+# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=atom -o /dev/null 2>&1 | FileCheck %s
# CHECK: error: please specify an out-of-order cpu. 'atom' is an in-order cpu.
Modified: llvm/trunk/test/tools/llvm-mca/X86/invalid-cpu.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/invalid-cpu.s?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/invalid-cpu.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/invalid-cpu.s Mon Jul 2 11:16:44 2018
@@ -1,3 +1,3 @@
-# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=foo -o %t1 2>&1 | FileCheck %s
+# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=foo -o /dev/null 2>&1 | FileCheck %s
# CHECK: 'foo' is not a recognized processor for this target (ignoring processor)
Modified: llvm/trunk/test/tools/llvm-mca/X86/invalid-empty-file.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/invalid-empty-file.s?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/invalid-empty-file.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/invalid-empty-file.s Mon Jul 2 11:16:44 2018
@@ -1,3 +1,3 @@
-# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=btver2 -o %t1 2>&1 | FileCheck %s
+# RUN: not llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=btver2 -o /dev/null 2>&1 | FileCheck %s
# CHECK: error: no assembly instructions found.
Modified: llvm/trunk/test/tools/llvm-mca/invalid_input_file_name.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/invalid_input_file_name.test?rev=336131&r1=336130&r2=336131&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/invalid_input_file_name.test (original)
+++ llvm/trunk/test/tools/llvm-mca/invalid_input_file_name.test Mon Jul 2 11:16:44 2018
@@ -1,3 +1,3 @@
-# RUN: not llvm-mca %t.blah -o %t2 2>&1 | FileCheck --check-prefix=ENOENT %s
+# RUN: not llvm-mca %t.blah -o /dev/null 2>&1 | FileCheck --check-prefix=ENOENT %s
# ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
More information about the llvm-commits
mailing list