Skip to content

Commit f0f4d41

Browse files
bbarenblatMaskRay
authored andcommitted
[lld][test] Make tests pass when the test directory matches bar
Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D72360
1 parent 9f979d7 commit f0f4d41

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

lld/test/COFF/start-lib.ll

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@
2222
; RUN: lld-link -out:%t2.exe -entry:main -opt:noref -lldmap:%t2.thinlto.map \
2323
; RUN: %t.bc -start-lib %t1.bc -end-lib %t2.bc
2424
; RUN: FileCheck --check-prefix=TEST2 %s < %t2.thinlto.map
25-
; TEST2-NOT: Name: foo
26-
; TEST2: bar
27-
; TEST2-NOT: Name: foo
25+
; TEST2: Address Size Align Out In Symbol
26+
; TEST2-NOT: {{ }}foo{{$}}
27+
; TEST2: {{ }}bar{{$}}
28+
; TEST2-NOT: {{ }}foo{{$}}
2829
;
2930
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.map \
3031
; RUN: %t.obj -start-lib %t1.obj %t2.obj
3132
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.map
3233
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.thinlto.map \
3334
; RUN: %t.bc -start-lib %t1.bc %t2.bc
3435
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.thinlto.map
35-
; TEST3-NOT: foo
36-
; TEST3-NOT: bar
36+
; TEST3: Address Size Align Out In Symbol
37+
; TEST3-NOT: {{ }}foo{{$}}
38+
; TEST3-NOT: {{ }}bar{{$}}
3739

3840
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
3941
target triple = "x86_64-pc-windows-msvc"

lld/test/ELF/assignment-archive.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# RUN: echo "SECTIONS { foo = 1; }" > %t1.script
88
# RUN: ld.lld -o %t1.exe --script %t1.script %tar.a %t.o
99
# RUN: llvm-readobj --symbols %t1.exe | FileCheck %s
10+
# CHECK: Symbols [
1011
# CHECK-NOT: bar
1112
# CHECK: foo
1213
# CHECK-NOT: bar

lld/test/ELF/lto/linker-script-symbols-assign.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
; RUN: echo "foo = 1;" > %t.script
55
; RUN: ld.lld %t.o -o %t2 --script %t.script -save-temps
6-
; RUN: llvm-readobj --symbols %t2.lto.o | FileCheck %s
6+
; RUN: llvm-nm %t2.lto.o | count 0
77

88
; CHECK-NOT: bar
99
; CHECK-NOT: foo

lld/test/ELF/undefined-glob.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
1515

1616
# RUN: ld.lld -o %t.exe %t.o %t.a
17-
# RUN: llvm-readobj --symbols %t.exe | FileCheck --check-prefix=NO-OPT %s
17+
# RUN: llvm-nm %t.exe | FileCheck --check-prefix=NO-OPT %s
1818

1919
# NO-OPT-NOT: foo
2020
# NO-OPT-NOT: bar

0 commit comments

Comments
 (0)