<div dir="ltr">Are you intentionally using %t and $t?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 9:44 PM, Matthias Braun <span dir="ltr"><<a href="mailto:matze@braunis.de" target="_blank">matze@braunis.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: matze<br>
Date: Mon Mar  2 14:44:09 2015<br>
New Revision: 231009<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=231009&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=231009&view=rev</a><br>
Log:<br>
Improve robustness of dependency-generation-crash.c test.<br>
<br>
The test wants to provoke a failure when opening the output file.<br>
Using chmod 0 on the output file does not work reliably on all<br>
filesystems or when running the test as root.<br>
Change the test to use a nonexistant directory instead.<br>
<br>
Differential Revision: <a href="http://reviews.llvm.org/D7620" target="_blank">http://reviews.llvm.org/D7620</a><br>
<br>
Modified:<br>
    cfe/trunk/test/Frontend/dependency-generation-crash.c<br>
<br>
Modified: cfe/trunk/test/Frontend/dependency-generation-crash.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/dependency-generation-crash.c?rev=231009&r1=231008&r2=231009&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/dependency-generation-crash.c?rev=231009&r1=231008&r2=231009&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/Frontend/dependency-generation-crash.c (original)<br>
+++ cfe/trunk/test/Frontend/dependency-generation-crash.c Mon Mar  2 14:44:09 2015<br>
@@ -1,7 +1,4 @@<br>
-// RUN: touch %t<br>
-// RUN: chmod 0 %t<br>
-// RUN: not %clang_cc1 -E -dependency-file bla -MT %t -MP -o %t -x c /dev/null 2>&1 | FileCheck %s<br>
-// RUN: rm -f %t<br>
+// RUN: not %clang_cc1 -E -dependency-file bla -MT %t/doesnotexist/bla.o -MP -o $t/doesnotexist/bla.o -x c /dev/null 2>&1 | FileCheck %s<br>
<br>
 // CHECK: error: unable to open output file<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>