[llvm] r346636 - [llvm-objdump] add more constraints for tests
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 12 00:10:15 PST 2018
Author: maskray
Date: Mon Nov 12 00:10:14 2018
New Revision: 346636
URL: http://llvm.org/viewvc/llvm-project?rev=346636&view=rev
Log:
[llvm-objdump] add more constraints for tests
Patch by Higuoxing (Xing)
Reviewers: jhenderson
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D54299
Modified:
llvm/trunk/test/tools/llvm-objdump/relocations-elf.test
llvm/trunk/test/tools/llvm-objdump/symbol-table-elf.test
Modified: llvm/trunk/test/tools/llvm-objdump/relocations-elf.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/relocations-elf.test?rev=346636&r1=346635&r2=346636&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/relocations-elf.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/relocations-elf.test Mon Nov 12 00:10:14 2018
@@ -1,6 +1,8 @@
# RUN: yaml2obj %s > %t
-# RUN: llvm-objdump --reloc %t | FileCheck %s
-# RUN: llvm-objdump -r %t | FileCheck %s
+# RUN: llvm-objdump --reloc %t > %t1
+# RUN: llvm-objdump -r %t > %t2
+# RUN: cmp %t1 %t2
+# RUN: FileCheck %s --input-file=%t1
# CHECK: RELOCATION RECORDS FOR [.rel.text]:
# CHECK: 0000000000000001 R_X86_64_32 glob1
Modified: llvm/trunk/test/tools/llvm-objdump/symbol-table-elf.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/symbol-table-elf.test?rev=346636&r1=346635&r2=346636&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/symbol-table-elf.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/symbol-table-elf.test Mon Nov 12 00:10:14 2018
@@ -1,6 +1,8 @@
# RUN: yaml2obj %s > %t
-# RUN: llvm-objdump --syms %t | FileCheck %s
-# RUN: llvm-objdump -t %t | FileCheck %s
+# RUN: llvm-objdump --syms %t > %t1
+# RUN: llvm-objdump -t %t > %t2
+# RUN: cmp %t1 %t2
+# RUN: FileCheck %s --input-file=%t1
# CHECK: SYMBOL TABLE:
# CHECK-NEXT: 0000000000000000 *UND* 00000000
More information about the llvm-commits
mailing list