[lld] r328794 - [ELF] - Add missing check calls to the tests.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 29 07:57:29 PDT 2018


Author: grimar
Date: Thu Mar 29 07:57:29 2018
New Revision: 328794

URL: http://llvm.org/viewvc/llvm-project?rev=328794&view=rev
Log:
[ELF] - Add missing check calls to the tests.

Modified:
    lld/trunk/test/ELF/i386-reloc-16.s
    lld/trunk/test/ELF/i386-reloc-8.s

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=328794&r1=328793&r2=328794&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-reloc-16.s (original)
+++ lld/trunk/test/ELF/i386-reloc-16.s Thu Mar 29 07:57:29 2018
@@ -4,9 +4,10 @@
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/x86-64-reloc-16-error.s -o %t2
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t
 // RUN: ld.lld -shared %t %t1 -o %t3
+// RUN: llvm-objdump -s %t3 | FileCheck %s
 
 // CHECK:      Contents of section .text:
-// CHECK-NEXT:   200000 42
+// CHECK-NEXT:   1000 42
 
 // RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_386_16 out of range: 65536 is not in [0, 65535]

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=328794&r1=328793&r2=328794&view=diff
==============================================================================
--- lld/trunk/test/ELF/i386-reloc-8.s (original)
+++ lld/trunk/test/ELF/i386-reloc-8.s Thu Mar 29 07:57:29 2018
@@ -4,9 +4,10 @@
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-reloc-8-error.s -o %t2
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t
 // RUN: ld.lld -shared %t %t1 -o %t3
+// RUN: llvm-objdump -s %t3 | FileCheck %s
 
 // CHECK:      Contents of section .text:
-// CHECK-NEXT:   200000 42
+// CHECK-NEXT:   1000 ff
 
 // RUN: not ld.lld -shared %t %t2 -o %t4 2>&1 | FileCheck --check-prefix=ERROR %s
 // ERROR: relocation R_386_8 out of range: 256 is not in [0, 255]




More information about the llvm-commits mailing list