From ed9d9964fb200af225739a89bfb988cbe8d8f69e Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Tue, 21 Mar 2023 11:19:34 -0700 Subject: [PATCH] [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 (cherry picked from commit 22b5fe74782a322e07855e20f83a14d7a426fcc9) --- llvm/test/tools/llvm-libtool-darwin/L-and-l.test | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 1ba59acc7ed7..679ae888f2ed 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