[ELF] Make linker-script-in-search-path.s robust per r337972
authorFangrui Song <maskray@google.com>
Wed, 25 Jul 2018 22:11:00 +0000 (22:11 +0000)
committerFangrui Song <maskray@google.com>
Wed, 25 Jul 2018 22:11:00 +0000 (22:11 +0000)
llvm-svn: 337975

lld/test/ELF/linkerscript/linker-script-in-search-path.s

index be83b55..ae39f9c 100644 (file)
@@ -4,8 +4,8 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
 # RUN: mkdir -p %T/searchpath
-# RUN: echo "OUTPUT(\"%t.out\")" > %T/searchpath/foo.script
-# RUN: ld.lld -T%T/searchpath/foo.script %t.o
+# RUN: echo 'OUTPUT("%t.out")' > %T/searchpath/%basename_t.script
+# RUN: ld.lld -T%T/searchpath/%basename_t.script %t.o
 # RUN: llvm-readobj %t.out | FileCheck %s
 # CHECK: Format: ELF64-x86-64