[libcxx] [test] Fix the temp_directory_path test for windows
authorMartin Storsjö <martin@martin.st>
Fri, 26 Feb 2021 13:15:36 +0000 (15:15 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 15 Mar 2021 17:24:56 +0000 (19:24 +0200)
commitb5e228fc00b18b1ce2ac823fe61b03b07600a9ad
treeedfe1de769ca7f130c490fdf3004a38fd16aa1d3
parentedf634ebc2673c2f6f878390c1f90bfd799f4a6b
[libcxx] [test] Fix the temp_directory_path test for windows

Check a different set of env vars, don't check the exact value
of the fallback path. (GetTempPath falls back to returning the Windows
folder if nothing better is available in env vars.)

The test still fails one check on windows (due to relying on perms::none),
which will be addressed separately.

Differential Revision: https://reviews.llvm.org/D98139
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp