Skip to content

Commit c177919

Browse files
committed
Update lld tests dynamic-list.s and symbol-override.s to use llvm-nm
The following tests failed on Windows bots due to nm not being available: lld/test/ELF/dynamic-list.s lld/test/ELF/symbol-override.s llvm-svn: 371267
1 parent a1cf4d9 commit c177919

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lld/test/ELF/dynamic-list.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Check exporting only one symbol.
88
# RUN: echo '{ foo1; };' > %t.list
99
# RUN: ld.lld --dynamic-list %t.list %t.o %t2.so -o %t
10-
# RUN: nm -D %t | FileCheck %s --implicit-check-not=foo
10+
# RUN: llvm-nm -D %t | FileCheck %s --implicit-check-not=foo
1111

1212
## And now using quoted strings (the output is the same since it does not
1313
## use any wildcard character).
@@ -26,7 +26,7 @@
2626
## Now export all the foo1, foo2, and foo31 symbols
2727
# RUN: echo "{ foo1; foo2; foo31; };" > %t.list
2828
# RUN: ld.lld --dynamic-list %t.list %t.o %t2.so -o %t
29-
# RUN: nm -D %t | FileCheck --check-prefix=CHECK2 %s --implicit-check-not=foo
29+
# RUN: llvm-nm -D %t | FileCheck --check-prefix=CHECK2 %s --implicit-check-not=foo
3030
# RUN: echo "{ foo1; foo2; };" > %t1.list
3131
# RUN: echo "{ foo31; };" > %t2.list
3232
# RUN: ld.lld --dynamic-list %t1.list --dynamic-list %t2.list %t.o %t2.so -o %t2
@@ -39,7 +39,7 @@
3939
## --export-dynamic is similar to --dynamic-list with '{ * }'
4040
# RUN: echo "{ foo2; };" > %t.list
4141
# RUN: ld.lld --dynamic-list %t.list --export-dynamic %t.o %t2.so -o %t
42-
# RUN: nm -D %t | FileCheck --check-prefix=CHECK3 %s --implicit-check-not=foo
42+
# RUN: llvm-nm -D %t | FileCheck --check-prefix=CHECK3 %s --implicit-check-not=foo
4343

4444
## The same with --export-dynamic-symbol.
4545
# RUN: ld.lld --export-dynamic-symbol=foo2 --export-dynamic %t.o %t2.so -o %t2

lld/test/ELF/symbol-override.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/symbol-override.s -o %t2.o
44
// RUN: ld.lld -shared %t2.o -o %t2.so
55
// RUN: ld.lld %t1.o %t2.so -o %t
6-
// RUN: nm -D %t | FileCheck %s
6+
// RUN: llvm-nm -D %t | FileCheck %s
77

88
// CHECK: do
99
// CHECK-NEXT: foo

0 commit comments

Comments
 (0)