Index: test/tools/llvm-objdump/relocations-elf.test =================================================================== --- test/tools/llvm-objdump/relocations-elf.test +++ test/tools/llvm-objdump/relocations-elf.test @@ -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 > %t.out1 +# RUN: llvm-objdump -r %t > %t.out2 +# RUN: cmp %t.out1 %t.out2 +# RUN: FileCheck %s --input-file=%t.out1 # CHECK: RELOCATION RECORDS FOR [.rel.text]: # CHECK: 0000000000000001 R_X86_64_32 glob1 Index: test/tools/llvm-objdump/symbol-table-elf.test =================================================================== --- test/tools/llvm-objdump/symbol-table-elf.test +++ test/tools/llvm-objdump/symbol-table-elf.test @@ -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 > %t.out1 +# RUN: llvm-objdump -t %t > %t.out2 +# RUN: cmp %t.out1 %t.out2 +# RUN: FileCheck %s --input-file=%t.out1 # CHECK: SYMBOL TABLE: # CHECK-NEXT: 0000000000000000 *UND* 00000000