[libc++] Do not rely on the environment to run filesystem tests
Previously, filesystem tests would require LIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT to be present in the environment and to match the value provided when compiling, as a macro. This has the problem that it only allows for the filesystem tests to be run on the same machine they are created. Instead, we create a temporary directory for each test. Technically, this is tricky to do because we're relying on some of the code that we're testing to do this. However, there's no other portable way of creating temporary direcories in C++, so this is difficult to avoid. Differential Revision: https://reviews.llvm.org/D76731
Loading
Please sign in to comment