[lld] r287704 - Fix test to not depend on the path size.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 13:37:38 PST 2016


Author: rafael
Date: Tue Nov 22 15:37:38 2016
New Revision: 287704

URL: http://llvm.org/viewvc/llvm-project?rev=287704&view=rev
Log:
Fix test to not depend on the path size.

Modified:
    lld/trunk/test/ELF/empty-ver.s

Modified: lld/trunk/test/ELF/empty-ver.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/empty-ver.s?rev=287704&r1=287703&r2=287704&view=diff
==============================================================================
--- lld/trunk/test/ELF/empty-ver.s (original)
+++ lld/trunk/test/ELF/empty-ver.s Tue Nov 22 15:37:38 2016
@@ -1,7 +1,9 @@
 // REQUIRES: x86
+// RUN: mkdir -p %t.dir
+// RUN: cd %t.dir
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: ld.lld %t.o -o %t.so -shared -version-script %p/Inputs/empty-ver.ver
-// RUN: llvm-readobj -s -version-info %t.so | FileCheck %s
+// RUN: ld.lld %t.o -o t.so -shared -version-script %p/Inputs/empty-ver.ver
+// RUN: llvm-readobj -s -section-data -version-info t.so | FileCheck %s
 
 // CHECK:      Name: .dynstr
 // CHECK-NEXT: Type: SHT_STRTAB
@@ -10,7 +12,14 @@
 // CHECK-NEXT: ]
 // CHECK-NEXT: Address:
 // CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 81
+// CHECK-NEXT: Size: 14
+// CHECK-NEXT: Link: 0
+// CHECK-NEXT: Info: 0
+// CHECK-NEXT: AddressAlignment: 1
+// CHECK-NEXT: EntrySize: 0
+// CHECK-NEXT: SectionData (
+// CHECK-NEXT:   0000: 00666F6F 00742E73 6F007665 7200      |.foo.t.so.ver.|
+// CHECK-NEXT: )
 
 // CHECK:      Version symbols {
 // CHECK-NEXT:   Section Name:




More information about the llvm-commits mailing list