Skip to content

Commit eff6e75

Browse files
committed
[LLD][ELF] Correct test temporary file paths
In 8031785 the temporary object being built was moved to %t/main.o, but not all run lines were updated to reflect this. Observe the failure on this buildbot: http://lab.llvm.org:8011/#/builders/5/builds/3646/steps/9/logs/stdio It might pass locally for some people due to a stale %t.o hanging around the build directory.
1 parent 43f34f5 commit eff6e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lld/test/ELF/wrap-shlib-undefined.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# CHECK2-NEXT: NOTYPE GLOBAL DEFAULT 6 foo
3232

3333
## __wrap_bar is undefined.
34-
# RUN: ld.lld -shared %t.o --wrap=bar -o %t3.so
34+
# RUN: ld.lld -shared %t/main.o --wrap=bar -o %t3.so
3535
# RUN: llvm-readelf -r --dyn-syms %t3.so | FileCheck %s --check-prefix=CHECK3
3636
# CHECK3: R_X86_64_JUMP_SLOT 0000000000000000 __wrap_bar + 0
3737
# CHECK3: Symbol table '.dynsym' contains 4 entries:
@@ -41,7 +41,7 @@
4141
# CHECK3-NEXT: NOTYPE GLOBAL DEFAULT 6 foo
4242

4343
## __wrap_bar is defined in %t/wrap.so.
44-
# RUN: ld.lld -shared %t.o %t/wrap.so --wrap=bar -o %t4.so
44+
# RUN: ld.lld -shared %t/main.o %t/wrap.so --wrap=bar -o %t4.so
4545
# RUN: llvm-readelf -r --dyn-syms %t4.so | FileCheck %s --check-prefix=CHECK4
4646
# CHECK4: R_X86_64_JUMP_SLOT {{.*}} __wrap_bar + 0
4747
# CHECK4: Symbol table '.dynsym' contains 4 entries:
@@ -50,7 +50,7 @@
5050
# CHECK4-NEXT: NOTYPE GLOBAL DEFAULT 6 _start
5151
# CHECK4-NEXT: NOTYPE GLOBAL DEFAULT 6 foo
5252

53-
# RUN: ld.lld %t.o %t/wrap.so --wrap bar -o %t1
53+
# RUN: ld.lld %t/main.o %t/wrap.so --wrap bar -o %t1
5454
# RUN: llvm-readelf --dyn-syms %t1 | FileCheck %s --check-prefix=DYNSYM
5555
# RUN: llvm-objdump -d %t1 | FileCheck %s --check-prefix=ASM
5656

0 commit comments

Comments
 (0)