[libc++] Run tests in a directory related to %t instead of /tmp
authorLouis Dionne <ldionne@apple.com>
Tue, 7 Apr 2020 19:42:00 +0000 (15:42 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 7 Apr 2020 20:09:52 +0000 (16:09 -0400)
commit3fefda6e578b431875405791bc7216595d767fbf
treed8de0e3436fe9e15a6d46fda6366075ae2eebd51
parentff30d015222e2b6fada6c649bb228167a9343314
[libc++] Run tests in a directory related to %t instead of /tmp

Instead of creating a temporary directory inside /tmp and running the
tests there, use a directory name based on LIT's %t substitution. This
has the benefit of not hitting /tmp so much (which is slow on some
filesystems). It also has the benefit that `ninja -C build clean` will
automatically remove the artifacts even if a test somehow failed to
remove its temporary directory (I've seen this happen when CTRL-C is
received).
libcxx/utils/libcxx/test/config.py
libcxx/utils/run.py