Skip to content

Commit

Permalink
[llvm-libtool-darwin] Fix test when libfile.a exists
Browse files Browse the repository at this point in the history
This can be a valid system library, as reported in
https://reviews.llvm.org/D85540#inline-1415298

(cherry picked from commit 22b5fe7)
  • Loading branch information
smeenai authored and jrtc27 committed Mar 21, 2023
1 parent b5d15bb commit ed9d996
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions llvm/test/tools/llvm-libtool-darwin/L-and-l.test
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@

## Check that an error is thrown when the input library cannot be found
## (since 'lib' and '.a' are added):
# RUN: llvm-ar cr %t/dirname/file %t-input1.o
# RUN: not llvm-libtool-darwin -static -o %t.lib -lfile -L%t/dirname 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-FOUND -DFILE=libfile.a
# RUN: llvm-ar cr %t/dirname/file-does-exist %t-input1.o
# RUN: not llvm-libtool-darwin -static -o %t.lib -lfile-does-exist -L%t/dirname 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-FOUND -DFILE=libfile-does-exist.a

# RUN: llvm-ar cr %t/dirname/libfile.a %t-input1.o
# RUN: not llvm-libtool-darwin -static -o %t.lib -llibfile.a -L%t/dirname 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-FOUND -DFILE=liblibfile.a.a
# RUN: llvm-ar cr %t/dirname/libfile-does-exist.a %t-input1.o
# RUN: not llvm-libtool-darwin -static -o %t.lib -llibfile-does-exist.a -L%t/dirname 2>&1 | \
# RUN: FileCheck %s --check-prefix=NOT-FOUND -DFILE=liblibfile-does-exist.a.a

## Check that an error is thrown when the input library is not valid:
# RUN: touch %t/dirname/not-valid.o
Expand Down

0 comments on commit ed9d996

Please sign in to comment.