<div dir="ltr">"No such file or directory" part of the error message is system-dependent because (I believe) it is what strerror returned. It is probably better to remove ": No such file or directory" from this test.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 23, 2016 at 12:36 PM, Rafael Espindola via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rafael<br>
Date: Tue Feb 23 14:36:20 2016<br>
New Revision: 261682<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=261682&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=261682&view=rev</a><br>
Log:<br>
Use a different error in test.<br>
<br>
This opens the way for -r being implemented.<br>
<br>
Modified:<br>
    lld/trunk/test/ELF/invalid-linkerscript.test<br>
<br>
Modified: lld/trunk/test/ELF/invalid-linkerscript.test<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-linkerscript.test?rev=261682&r1=261681&r2=261682&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-linkerscript.test?rev=261682&r1=261681&r2=261682&view=diff</a><br>
==============================================================================<br>
--- lld/trunk/test/ELF/invalid-linkerscript.test (original)<br>
+++ lld/trunk/test/ELF/invalid-linkerscript.test Tue Feb 23 14:36:20 2016<br>
@@ -9,46 +9,46 @@<br>
<br>
 # RUN: mkdir -p %t.dir<br>
<br>
-## Note that we are using "-r option is not supported" as a marker<br>
-## that the linker keep going when it found an error. That specific<br>
+## Note that we are using "cannot open no-such-file: No such file or directory"<br>
+## as a marker that the linker keep going when it found an error. That specific<br>
 ## error message is not related to the linker script tests.<br>
<br>
 # RUN: echo foobar > %t1<br>
-# RUN: not ld.lld -r %t1 2>&1 | FileCheck -check-prefix=ERR1 %s<br>
+# RUN: not ld.lld %t1 no-such-file 2>&1 | FileCheck -check-prefix=ERR1 %s<br>
 # ERR1: unknown directive: foobar<br>
-# ERR1: -r option is not supported<br>
+# ERR1: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "foo \"bar" > %t2<br>
-# RUN: not ld.lld -r %t2 2>&1 | FileCheck -check-prefix=ERR2 %s<br>
+# RUN: not ld.lld %t2 no-such-file 2>&1 | FileCheck -check-prefix=ERR2 %s<br>
 # ERR2: unclosed quote<br>
-# ERR2: -r option is not supported<br>
+# ERR2: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "/*" > %t3<br>
-# RUN: not ld.lld -r %t3 2>&1 | FileCheck -check-prefix=ERR3 %s<br>
+# RUN: not ld.lld %t3 no-such-file 2>&1 | FileCheck -check-prefix=ERR3 %s<br>
 # ERR3: unclosed comment<br>
-# ERR3: -r option is not supported<br>
+# ERR3: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "EXTERN (" > %t4<br>
-# RUN: not ld.lld -r %t4 2>&1 | FileCheck -check-prefix=ERR4 %s<br>
+# RUN: not ld.lld %t4 no-such-file 2>&1 | FileCheck -check-prefix=ERR4 %s<br>
 # ERR4: unexpected EOF<br>
-# ERR4: -r option is not supported<br>
+# ERR4: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "EXTERN (" > %t5<br>
-# RUN: not ld.lld -r %t5 2>&1 | FileCheck -check-prefix=ERR5 %s<br>
+# RUN: not ld.lld %t5 no-such-file 2>&1 | FileCheck -check-prefix=ERR5 %s<br>
 # ERR5: unexpected EOF<br>
-# ERR5: -r option is not supported<br>
+# ERR5: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "EXTERN xyz" > %t6<br>
-# RUN: not ld.lld -r %t6 2>&1 | FileCheck -check-prefix=ERR6 %s<br>
+# RUN: not ld.lld %t6 no-such-file 2>&1 | FileCheck -check-prefix=ERR6 %s<br>
 # ERR6: ( expected, but got xyz<br>
-# ERR6: -r option is not supported<br>
+# ERR6: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "INCLUDE /no/such/file" > %t7<br>
-# RUN: not ld.lld -r %t7 2>&1 | FileCheck -check-prefix=ERR7 %s<br>
+# RUN: not ld.lld %t7 no-such-file 2>&1 | FileCheck -check-prefix=ERR7 %s<br>
 # ERR7: cannot open /no/such/file<br>
-# ERR7: -r option is not supported<br>
+# ERR7: cannot open no-such-file: No such file or directory<br>
<br>
 # RUN: echo "OUTPUT_FORMAT(x y z)" > %t8<br>
-# RUN: not ld.lld -r %t8 2>&1 | FileCheck -check-prefix=ERR8 %s<br>
+# RUN: not ld.lld %t8 no-such-file 2>&1 | FileCheck -check-prefix=ERR8 %s<br>
 # ERR8: unexpected token: y<br>
-# ERR8: -r option is not supported<br>
\ No newline at end of file<br>
+# ERR8: cannot open no-such-file: No such file or directory<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>