All of the lit tests have this restriction, is this something you would do with unit tests but not lit tests?<br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 14, 2018 at 6:04 AM Nico Weber via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thakis added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D51561#1227163" rel="noreferrer" target="_blank">https://reviews.llvm.org/D51561#1227163</a>, @thakis wrote:<br>
<br>
> In <a href="https://reviews.llvm.org/D51561#1226583" rel="noreferrer" target="_blank">https://reviews.llvm.org/D51561#1226583</a>, @zturner wrote:<br>
><br>
> > These aren't demangle tests fwiw.  But that just complicates the cmake<br>
> >  logic, and I don't see the benefit of doing so.  Writing 3k of data to the<br>
> >  disk is hardly going to be a noticeable part of the configure step.<br>
><br>
><br>
> The benefits are:<br>
><br>
> 1. Unit tests reading inputs are bad form; doing that should require an explicit opt-in.<br>
> 2. While writing 3k of data to disk isn't causing measurable perf issues, writing a text file next to every test binary just because one test binary needs it is still plain ugly.<br>
><br>
>   And not doing it is super easy to do. I don't understand the pushback here.<br>
<br>
<br>
^ zturner: Ping on this.<br>
<br>
Unrelatedly, another problem with the current design is that llvm.srcdir.txt must contain an absolute path, which makes it impossible to build on one machine and then copy artifacts and test inputs to another machine and run tests on another machine. DebugInfoPDBTests is the only test in all llvm, lld, clang tests that has this restriction. Requiring some defined fixed pwd for unit tests with inputs would address this issue as well. (As would finding a way to not require reading a file off disk for this test.)<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D51561" rel="noreferrer" target="_blank">https://reviews.llvm.org/D51561</a><br>
<br>
<br>
<br>
</blockquote></div>