summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-08-30 05:44:36 +0000
committerMartin Storsjo <martin@martin.st>2018-08-30 05:44:36 +0000
commite5120a3bd417022abb635c21d1e8350505adb7e3 (patch)
tree96a094eec9c130af904fadf306104b7775eab936
parentd3a4cbe1537775ec89b4d4326f63bfdb6d53d903 (diff)
downloadbcm5719-llvm-e5120a3bd417022abb635c21d1e8350505adb7e3.tar.gz
bcm5719-llvm-e5120a3bd417022abb635c21d1e8350505adb7e3.zip
[test] Adjust a test to use CHECK-NEXT instead of CHECK-NOT. NFC.
Since the order and placement of the non-wanted elements might not be obvious, it feels more straightforward to hardcode the whole list with -NEXT elements (and checking for the end of the output with CHECK-EMPTY) instead of adding CHECK-NOT lines at the right places where the unwanted elements would appear if they erroneously were to included. llvm-svn: 341016
-rw-r--r--lld/test/COFF/export-all.s11
1 files changed, 5 insertions, 6 deletions
diff --git a/lld/test/COFF/export-all.s b/lld/test/COFF/export-all.s
index 78a2527cd0b..d591b9349ed 100644
--- a/lld/test/COFF/export-all.s
+++ b/lld/test/COFF/export-all.s
@@ -3,14 +3,13 @@
# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj
# RUN: lld-link -lldmingw -dll -out:%t.dll -entry:DllMainCRTStartup@12 %t.obj -implib:%t.lib
-# RUN: llvm-readobj -coff-exports %t.dll | FileCheck %s
+# RUN: llvm-readobj -coff-exports %t.dll | grep Name: | FileCheck %s
# RUN: llvm-readobj %t.lib | FileCheck -check-prefix=IMPLIB %s
-# CHECK-NOT: Name: DllMainCRTStartup
-# CHECK-NOT: Name: _imp__unexported
-# CHECK: Name: dataSym
-# CHECK: Name: foobar
-# CHECK-NOT: Name: unexported
+# CHECK: Name:
+# CHECK-NEXT: Name: dataSym
+# CHECK-NEXT: Name: foobar
+# CHECK-EMPTY:
# IMPLIB: Symbol: __imp__dataSym
# IMPLIB-NOT: Symbol: _dataSym
OpenPOWER on IntegriCloud