[lld] r371267 - Update lld tests dynamic-list.s and symbol-override.s to use llvm-nm

Matthew Voss via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 15:51:47 PDT 2019


Author: ormris
Date: Fri Sep  6 15:51:46 2019
New Revision: 371267

URL: http://llvm.org/viewvc/llvm-project?rev=371267&view=rev
Log:
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

Modified:
    lld/trunk/test/ELF/dynamic-list.s
    lld/trunk/test/ELF/symbol-override.s

Modified: lld/trunk/test/ELF/dynamic-list.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/dynamic-list.s?rev=371267&r1=371266&r2=371267&view=diff
==============================================================================
--- lld/trunk/test/ELF/dynamic-list.s (original)
+++ lld/trunk/test/ELF/dynamic-list.s Fri Sep  6 15:51:46 2019
@@ -7,7 +7,7 @@
 ## Check exporting only one symbol.
 # RUN: echo '{ foo1; };' > %t.list
 # RUN: ld.lld --dynamic-list %t.list %t.o %t2.so -o %t
-# RUN: nm -D %t | FileCheck %s --implicit-check-not=foo
+# RUN: llvm-nm -D %t | FileCheck %s --implicit-check-not=foo
 
 ## And now using quoted strings (the output is the same since it does not
 ## use any wildcard character).
@@ -26,7 +26,7 @@
 ## Now export all the foo1, foo2, and foo31 symbols
 # RUN: echo "{ foo1; foo2; foo31; };" > %t.list
 # RUN: ld.lld --dynamic-list %t.list %t.o %t2.so -o %t
-# RUN: nm -D %t | FileCheck --check-prefix=CHECK2 %s --implicit-check-not=foo
+# RUN: llvm-nm -D %t | FileCheck --check-prefix=CHECK2 %s --implicit-check-not=foo
 # RUN: echo "{ foo1; foo2; };" > %t1.list
 # RUN: echo "{ foo31; };" > %t2.list
 # RUN: ld.lld --dynamic-list %t1.list --dynamic-list %t2.list %t.o %t2.so -o %t2
@@ -39,7 +39,7 @@
 ## --export-dynamic is similar to --dynamic-list with '{ * }'
 # RUN: echo "{ foo2; };" > %t.list
 # RUN: ld.lld --dynamic-list %t.list --export-dynamic %t.o %t2.so -o %t
-# RUN: nm -D %t | FileCheck --check-prefix=CHECK3 %s --implicit-check-not=foo
+# RUN: llvm-nm -D %t | FileCheck --check-prefix=CHECK3 %s --implicit-check-not=foo
 
 ## The same with --export-dynamic-symbol.
 # RUN: ld.lld --export-dynamic-symbol=foo2 --export-dynamic %t.o %t2.so -o %t2

Modified: lld/trunk/test/ELF/symbol-override.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/symbol-override.s?rev=371267&r1=371266&r2=371267&view=diff
==============================================================================
--- lld/trunk/test/ELF/symbol-override.s (original)
+++ lld/trunk/test/ELF/symbol-override.s Fri Sep  6 15:51:46 2019
@@ -3,7 +3,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/symbol-override.s -o %t2.o
 // RUN: ld.lld -shared %t2.o -o %t2.so
 // RUN: ld.lld %t1.o %t2.so -o %t
-// RUN: nm -D %t | FileCheck %s
+// RUN: llvm-nm -D %t | FileCheck %s
 
 // CHECK:      do
 // CHECK-NEXT: foo




More information about the llvm-commits mailing list