[PATCH] D35396: [lit] Make %T return a per-test temporary directory

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 12:42:05 PDT 2017


MatzeB added inline comments.


================
Comment at: docs/TestingGuide.rst:459
+   some redirected output. If your test needs a temporary directory, you can
+   use ``mkdir -p %t``.
 
----------------
delcypher wrote:
> What are we supposed to do to have a test written that way to work on Windows? There is a `mkdir` command but I'm not familiar enough with it to know if doing `mkdir "%t"` will work. It certainly doesn't take a `-p` argument.
I have no experience with how we do things on windows, but I'm sure I've seen things like `grep`, `sed` etc. which aren't available on windows by default. I always assumed we expect people to install some posix compatible tools to run the tests on windows...


https://reviews.llvm.org/D35396





More information about the llvm-commits mailing list