Make quick-append.test resilient to running in paths with '1.o' in the name

This commit is contained in:
Hans Wennborg 2020-02-03 11:34:36 +01:00
parent 6b15a3d722
commit f00ab188f4
1 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@
# RUN: llvm-ar t %t/single.a \ # RUN: llvm-ar t %t/single.a \
# RUN: | FileCheck %s --check-prefix=SINGLE --match-full-lines --implicit-check-not {{.}} # RUN: | FileCheck %s --check-prefix=SINGLE --match-full-lines --implicit-check-not {{.}}
# SINGLE: 1.o # SINGLE: 1.o{{$}}
# RUN: llvm-nm --print-armap %t/single.a \ # RUN: llvm-nm --print-armap %t/single.a \
# RUN: | FileCheck %s --check-prefix=SINGLE-SYM # RUN: | FileCheck %s --check-prefix=SINGLE-SYM
@ -21,28 +21,28 @@
# RUN: llvm-ar t %t/multiple.a \ # RUN: llvm-ar t %t/multiple.a \
# RUN: | FileCheck %s --check-prefix=MULTIPLE --match-full-lines --implicit-check-not {{.}} # RUN: | FileCheck %s --check-prefix=MULTIPLE --match-full-lines --implicit-check-not {{.}}
# MULTIPLE: 1.o # MULTIPLE: 1.o{{$}}
# MULTIPLE-NEXT: 2.o # MULTIPLE-NEXT: 2.o{{$}}
# RUN: llvm-nm --print-armap %t/multiple.a \ # RUN: llvm-nm --print-armap %t/multiple.a \
# RUN: | FileCheck %s --check-prefix=MULTIPLE-SYM # RUN: | FileCheck %s --check-prefix=MULTIPLE-SYM
# MULTIPLE-SYM: symbol1 # MULTIPLE-SYM: symbol1 in 1.o
# MULTIPLE-SYM-NEXT: symbol2 # MULTIPLE-SYM-NEXT: symbol2 in 2.o
## Append same member: ## Append same member:
# RUN: llvm-ar qc %t/same.a %t/1.o %t/1.o # RUN: llvm-ar qc %t/same.a %t/1.o %t/1.o
# RUN: llvm-ar t %t/same.a \ # RUN: llvm-ar t %t/same.a \
# RUN: | FileCheck %s --check-prefix=SAME -DFILE=%t/2.o --match-full-lines --implicit-check-not {{.}} # RUN: | FileCheck %s --check-prefix=SAME -DFILE=%t/2.o --match-full-lines --implicit-check-not {{.}}
# SAME: 1.o # SAME: 1.o{{$}}
# SAME-NEXT: 1.o # SAME-NEXT: 1.o{{$}}
# RUN: llvm-nm --print-armap %t/same.a \ # RUN: llvm-nm --print-armap %t/same.a \
# RUN: | FileCheck %s --check-prefix=SAME-SYM # RUN: | FileCheck %s --check-prefix=SAME-SYM
# SAME-SYM: symbol1 # SAME-SYM: symbol1 in 1.o
# SAME-SYM-NEXT: symbol1 # SAME-SYM-NEXT: symbol1 in 1.o
## Append without member: ## Append without member:
# RUN: llvm-ar qc %t/without.a # RUN: llvm-ar qc %t/without.a