Don't rely on the elf test suites inputs when testing the driver. We
authorChandler Carruth <chandlerc@gmail.com>
Wed, 11 Mar 2015 22:12:40 +0000 (22:12 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 11 Mar 2015 22:12:40 +0000 (22:12 +0000)
already have a perfectly cromulent test archive in the driver inputs.

llvm-svn: 231976

lld/test/Driver/lib-search.test

index 73887b1..9d3666f 100644 (file)
@@ -1,4 +1,4 @@
-RUN: not lld -flavor gnu -t -lfnarchive -L%p/../elf/Inputs 2> %t.err
+RUN: not lld -flavor gnu -t -ltest -L%p/Inputs 2> %t.err
 RUN: FileCheck %s < %t.err
 
 RUN: not lld -flavor gnu -target x86_64--netbsd -t -ltest \
@@ -16,7 +16,7 @@ RUN: FileCheck -check-prefix=NETBSD-AMD64_32 %s < %t5
 
 # run linker with -t mode to dump full paths to input files
 
-CHECK: {{[^ ]+}}elf{{[\\/]}}Inputs{{[\\/]}}libfnarchive.a
+CHECK: {{[^ ]+[\\/]}}Inputs{{[\\/]}}libtest.a
 
 NETBSD-AMD64: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}libtest.a
 NETBSD-AMD64-NS-NOT: {{[^ ]+}}{{[\\/]}}Inputs{{[\\/]}}usr{{[\\/]}}lib{{[\\/]}}libtest.a