[lld] r282256 - Fix test when run in unusual test directories.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 08:34:53 PDT 2016


Author: rafael
Date: Fri Sep 23 10:34:53 2016
New Revision: 282256

URL: http://llvm.org/viewvc/llvm-project?rev=282256&view=rev
Log:
Fix test when run in unusual test directories.

It would fail for example if the directory contained an @. Both gold
and bfd require quotes for @, so just change the test to quote the
directory name.

Thanks to Vedant Kumar for the bug report.

Modified:
    lld/trunk/test/ELF/libsearch.s

Modified: lld/trunk/test/ELF/libsearch.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/libsearch.s?rev=282256&r1=282255&r2=282256&view=diff
==============================================================================
--- lld/trunk/test/ELF/libsearch.s (original)
+++ lld/trunk/test/ELF/libsearch.s Fri Sep 23 10:34:53 2016
@@ -86,7 +86,7 @@
 // RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=DYNAMIC %s
 
 // -nostdlib
-// RUN: echo 'SEARCH_DIR(' %t.dir ')' > %t.script
+// RUN: echo 'SEARCH_DIR("'%t.dir'")' > %t.script
 // RUN: ld.lld -o %t3 %t.o -script %t.script -lls
 // RUN: not ld.lld -o %t3 %t.o -script %t.script -lls -nostdlib \
 // RUN:   2>&1 | FileCheck --check-prefix=NOSTDLIB %s




More information about the llvm-commits mailing list