[lld] r268388 - Don't depend on checking the response file when lld fails.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 07:29:42 PDT 2016
Author: rafael
Date: Tue May 3 09:29:42 2016
New Revision: 268388
URL: http://llvm.org/viewvc/llvm-project?rev=268388&view=rev
Log:
Don't depend on checking the response file when lld fails.
Modified:
lld/trunk/test/ELF/reproduce.s
Modified: lld/trunk/test/ELF/reproduce.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce.s?rev=268388&r1=268387&r2=268388&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce.s (original)
+++ lld/trunk/test/ELF/reproduce.s Tue May 3 09:29:42 2016
@@ -26,18 +26,21 @@
# RUN: ld.lld ./../../../foo.o -o bar -shared --as-needed --reproduce repro
# RUN: diff %t.dir/build2/foo.o repro/%:t.dir/build2/foo.o
-# RUN: touch file
-# RUN: not ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile \
-# RUN: --dynamic-list file -rpath file --script file --version-script file \
+# RUN: echo "{ local: *; };" > ver
+# RUN: echo > dyn
+# RUN: echo > file
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o 'foo bar'
+# RUN: ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile \
+# RUN: --dynamic-list dyn -rpath file --script file --version-script ver \
# RUN: --dynamic-linker "some unusual/path"
# RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt
-# RSP2: "foo bar"
-# RSP2-NEXT: -L "foo bar"
+# RSP2: "{{.*}}foo bar"
+# RSP2-NEXT: -L "{{.*}}foo bar"
# RSP2-NEXT: -L {{.+}}file
-# RSP2-NEXT: --dynamic-list {{.+}}file
+# RSP2-NEXT: --dynamic-list {{.+}}dyn
# RSP2-NEXT: -rpath {{.+}}file
# RSP2-NEXT: --script {{.+}}file
-# RSP2-NEXT: --version-script {{.+}}file
+# RSP2-NEXT: --version-script {{.+}}ver
# RSP2-NEXT: --dynamic-linker "some unusual/path"
# RUN: not ld.lld build1/foo.o -o bar -shared --as-needed --reproduce . 2>&1 \
More information about the llvm-commits
mailing list