From cfdd1fdfb6d08a76d44117c1a198d3eb1794679c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 23 Sep 2016 15:34:53 +0000 Subject: [PATCH] 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. llvm-svn: 282256 --- lld/test/ELF/libsearch.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/test/ELF/libsearch.s b/lld/test/ELF/libsearch.s index 309fa99..8c6c679 100644 --- a/lld/test/ELF/libsearch.s +++ b/lld/test/ELF/libsearch.s @@ -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 -- 2.7.4