<div dir="ltr">I will just add that once upon a time, there was a test in LLVM that worked similar to this, and so it would try to open a file like /foo/foo.txt, and expect it to fail (meaning that if it succeeded, the test would fail). I had once created that file on my hard drive by pure coincidence, and so this test was failing for me. <div><br></div><div>So, I think we should try to find a way to specify "inaccessible directory" that doesn't involve potentially flakiness or system-dependence.</div><div><br></div><div>Off the top of my head, we could allow LLDB to recognize a hidden / undocumented environment variable like LLDB_REPRODUCER_NO_CREATE_DIRECTORY, and we could set that variable before running the test. Another option would be to create the directory beforehand using a certain permission mask that would not cause this test to fail (e.g. you can't read from it or write to it but you can still delete it). We'd need a tool that can do that though.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 12:55 PM Jonas Devlieghere <<a href="mailto:jonas@devlieghere.com">jonas@devlieghere.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That wouldn't work because we try to create the directory which would succeeded in the temp dir. I'd have to be something you don't have access to, like the root or some network drive. </div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 12:53 PM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps use %t.bogus? instead of /bogus?</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 12:39 PM Jonas Devlieghere via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: jdevlieghere<br>
Date: Mon Dec 3 12:36:21 2018<br>
New Revision: 348186<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=348186&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=348186&view=rev</a><br>
Log:<br>
Skip TestDriverOptions on Windows<br>
<br>
It's not clear to me why this is failing on Windows. Maybe it has<br>
something to do with the path?<br>
<br>
Modified:<br>
lldb/trunk/lit/Reproducer/TestDriverOptions.test<br>
<br>
Modified: lldb/trunk/lit/Reproducer/TestDriverOptions.test<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Reproducer/TestDriverOptions.test?rev=348186&r1=348185&r2=348186&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Reproducer/TestDriverOptions.test?rev=348186&r1=348185&r2=348186&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/lit/Reproducer/TestDriverOptions.test (original)<br>
+++ lldb/trunk/lit/Reproducer/TestDriverOptions.test Mon Dec 3 12:36:21 2018<br>
@@ -1,3 +1,6 @@<br>
+# FIXME: Find out why this fails on Windows.<br>
+# UNSUPPORTED: system-windows<br>
+<br>
# Check that errors are propagated to the driver.<br>
<br>
# RUN: not %lldb --capture /bogus 2>&1 | FileCheck %s --check-prefix CAPTURE<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>