aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-07-02 18:16:44 +0000
committerFangrui Song <maskray@google.com>2018-07-02 18:16:44 +0000
commitf50ad6c311effee3bb70c3555fb6f6b0d59465b8 (patch)
tree6f76e82db3988b681ce85e8e630dad85302f1038
parent3b416db19ba91207649430cfa4604ffd331bf86c (diff)
downloadllvm-f50ad6c311effee3bb70c3555fb6f6b0d59465b8.zip
llvm-f50ad6c311effee3bb70c3555fb6f6b0d59465b8.tar.gz
llvm-f50ad6c311effee3bb70c3555fb6f6b0d59465b8.tar.bz2
Replace unused output filenames with /dev/null in tests
Similar to rLLD336129 llvm-svn: 336131
-rw-r--r--llvm/test/MC/AArch64/ldr-pseudo-obj-errors.s2
-rw-r--r--llvm/test/MC/ELF/dwo-restrict-relocs.s2
-rw-r--r--llvm/test/tools/dsymutil/ARM/fat-arch-name.test2
-rw-r--r--llvm/test/tools/dsymutil/ARM/fat-threading.test2
-rw-r--r--llvm/test/tools/llvm-mc/basic.test2
-rw-r--r--llvm/test/tools/llvm-mca/X86/in-order-cpu.s2
-rw-r--r--llvm/test/tools/llvm-mca/X86/invalid-cpu.s2
-rw-r--r--llvm/test/tools/llvm-mca/X86/invalid-empty-file.s2
-rw-r--r--llvm/test/tools/llvm-mca/invalid_input_file_name.test2
9 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/MC/AArch64/ldr-pseudo-obj-errors.s b/llvm/test/MC/AArch64/ldr-pseudo-obj-errors.s
index d851917..b486abe 100644
--- a/llvm/test/MC/AArch64/ldr-pseudo-obj-errors.s
+++ b/llvm/test/MC/AArch64/ldr-pseudo-obj-errors.s
@@ -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
diff --git a/llvm/test/MC/ELF/dwo-restrict-relocs.s b/llvm/test/MC/ELF/dwo-restrict-relocs.s
index b624d40..1bc1510 100644
--- a/llvm/test/MC/ELF/dwo-restrict-relocs.s
+++ b/llvm/test/MC/ELF/dwo-restrict-relocs.s
@@ -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
diff --git a/llvm/test/tools/dsymutil/ARM/fat-arch-name.test b/llvm/test/tools/dsymutil/ARM/fat-arch-name.test
index 14d33d0..be12aff 100644
--- a/llvm/test/tools/dsymutil/ARM/fat-arch-name.test
+++ b/llvm/test/tools/dsymutil/ARM/fat-arch-name.test
@@ -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
diff --git a/llvm/test/tools/dsymutil/ARM/fat-threading.test b/llvm/test/tools/dsymutil/ARM/fat-threading.test
index a723812..850979a 100644
--- a/llvm/test/tools/dsymutil/ARM/fat-threading.test
+++ b/llvm/test/tools/dsymutil/ARM/fat-threading.test
@@ -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
diff --git a/llvm/test/tools/llvm-mc/basic.test b/llvm/test/tools/llvm-mc/basic.test
index edac652..c7480dc 100644
--- a/llvm/test/tools/llvm-mc/basic.test
+++ b/llvm/test/tools/llvm-mc/basic.test
@@ -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
diff --git a/llvm/test/tools/llvm-mca/X86/in-order-cpu.s b/llvm/test/tools/llvm-mca/X86/in-order-cpu.s
index 7c58b3d8..483a4e2 100644
--- a/llvm/test/tools/llvm-mca/X86/in-order-cpu.s
+++ b/llvm/test/tools/llvm-mca/X86/in-order-cpu.s
@@ -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.
diff --git a/llvm/test/tools/llvm-mca/X86/invalid-cpu.s b/llvm/test/tools/llvm-mca/X86/invalid-cpu.s
index 4298e711..7457f8c 100644
--- a/llvm/test/tools/llvm-mca/X86/invalid-cpu.s
+++ b/llvm/test/tools/llvm-mca/X86/invalid-cpu.s
@@ -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)
diff --git a/llvm/test/tools/llvm-mca/X86/invalid-empty-file.s b/llvm/test/tools/llvm-mca/X86/invalid-empty-file.s
index 46b12d4..c727d7c 100644
--- a/llvm/test/tools/llvm-mca/X86/invalid-empty-file.s
+++ b/llvm/test/tools/llvm-mca/X86/invalid-empty-file.s
@@ -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.
diff --git a/llvm/test/tools/llvm-mca/invalid_input_file_name.test b/llvm/test/tools/llvm-mca/invalid_input_file_name.test
index 2d2d30a..27fa972 100644
--- a/llvm/test/tools/llvm-mca/invalid_input_file_name.test
+++ b/llvm/test/tools/llvm-mca/invalid_input_file_name.test
@@ -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