[llvm] 22b5fe7 - [llvm-libtool-darwin] Fix test when libfile.a exists
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 11:21:11 PDT 2023
Author: Shoaib Meenai
Date: 2023-03-21T11:20:24-07:00
New Revision: 22b5fe74782a322e07855e20f83a14d7a426fcc9
URL: https://github.com/llvm/llvm-project/commit/22b5fe74782a322e07855e20f83a14d7a426fcc9
DIFF: https://github.com/llvm/llvm-project/commit/22b5fe74782a322e07855e20f83a14d7a426fcc9.diff
LOG: [llvm-libtool-darwin] Fix test when libfile.a exists
This can be a valid system library, as reported in
https://reviews.llvm.org/D85540#inline-1415298
Added:
Modified:
llvm/test/tools/llvm-libtool-darwin/L-and-l.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-libtool-darwin/L-and-l.test b/llvm/test/tools/llvm-libtool-darwin/L-and-l.test
index 1ba59acc7ed74..679ae888f2edc 100644
--- a/llvm/test/tools/llvm-libtool-darwin/L-and-l.test
+++ b/llvm/test/tools/llvm-libtool-darwin/L-and-l.test
@@ -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
More information about the llvm-commits
mailing list