[libc++] Tidy up how %T and %t are created during configuration checks
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 22 Nov 2021 20:40:12 +0000 (15:40 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Tue, 23 Nov 2021 14:51:22 +0000 (09:51 -0500)
commit13fa4fcfe70eaf5fdef6f8520fe134ac1d9955b1
treeeccb3de7d8a02a2599136081c926c9ce97fd37d3
parent871418c5b0d0b6b61c24e3523bcb176c4c571217
[libc++] Tidy up how %T and %t are created during configuration checks

Instead of having ad-hoc cleanup in various places, handle all creation
and removal of temporary files and directories inside _makeConfigTest.

As a fly-by, also remove testPrefix since we don't keep any source file
around anymore. Setting a prefix for the files is hence not useful anymore.

Differential Revision: https://reviews.llvm.org/D114390
libcxx/utils/libcxx/test/dsl.py