[libc++] Use explicit module cache path in tests
authorAlex Brachet <abrachet@google.com>
Tue, 14 Jun 2022 18:06:59 +0000 (18:06 +0000)
committerAlex Brachet <abrachet@google.com>
Tue, 14 Jun 2022 18:06:59 +0000 (18:06 +0000)
commit93c46e9632a60017d20f559963b14b095b6de497
tree25ab0056261436a03e27ebe8093e59a6105a12aa
parent127780e5b70d6bf087c30c7d47606f7fd20b6c07
[libc++] Use explicit module cache path in tests

For reference, this test creates about 1.5G in the cache
directory. By default this will go to ~/.cache/clang/
which can fill up quick. This changes the test to put the
cache path in lit temp directories. Size considerations
aside it makes sense for tests to be hermetic and not
touch global system state.

Differential revision: https://reviews.llvm.org/D127587
libcxx/test/libcxx/modules_include.sh.cpp