Skip to content

Commit

Permalink
[lld][test] Make tests pass when the test directory matches bar
Browse files Browse the repository at this point in the history
Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D72360
  • Loading branch information
bbarenblat authored and MaskRay committed Mar 6, 2020
1 parent 9f979d7 commit f0f4d41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions lld/test/COFF/start-lib.ll
Expand Up @@ -22,18 +22,20 @@
; RUN: lld-link -out:%t2.exe -entry:main -opt:noref -lldmap:%t2.thinlto.map \
; RUN: %t.bc -start-lib %t1.bc -end-lib %t2.bc
; RUN: FileCheck --check-prefix=TEST2 %s < %t2.thinlto.map
; TEST2-NOT: Name: foo
; TEST2: bar
; TEST2-NOT: Name: foo
; TEST2: Address Size Align Out In Symbol
; TEST2-NOT: {{ }}foo{{$}}
; TEST2: {{ }}bar{{$}}
; TEST2-NOT: {{ }}foo{{$}}
;
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.map \
; RUN: %t.obj -start-lib %t1.obj %t2.obj
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.map
; RUN: lld-link -out:%t3.exe -entry:main -opt:noref -lldmap:%t3.thinlto.map \
; RUN: %t.bc -start-lib %t1.bc %t2.bc
; RUN: FileCheck --check-prefix=TEST3 %s < %t3.thinlto.map
; TEST3-NOT: foo
; TEST3-NOT: bar
; TEST3: Address Size Align Out In Symbol
; TEST3-NOT: {{ }}foo{{$}}
; TEST3-NOT: {{ }}bar{{$}}

target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/assignment-archive.s
Expand Up @@ -7,6 +7,7 @@
# RUN: echo "SECTIONS { foo = 1; }" > %t1.script
# RUN: ld.lld -o %t1.exe --script %t1.script %tar.a %t.o
# RUN: llvm-readobj --symbols %t1.exe | FileCheck %s
# CHECK: Symbols [
# CHECK-NOT: bar
# CHECK: foo
# CHECK-NOT: bar
Expand Down
2 changes: 1 addition & 1 deletion lld/test/ELF/lto/linker-script-symbols-assign.ll
Expand Up @@ -3,7 +3,7 @@

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

; CHECK-NOT: bar
; CHECK-NOT: foo
Expand Down
2 changes: 1 addition & 1 deletion lld/test/ELF/undefined-glob.s
Expand Up @@ -14,7 +14,7 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o

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

# NO-OPT-NOT: foo
# NO-OPT-NOT: bar
Expand Down

0 comments on commit f0f4d41

Please sign in to comment.