aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/filesystem/operations.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-10-19 10:57:36 +0300
committerMartin Storsjö <martin@martin.st>2021-02-26 00:10:47 +0200
commit3be7968c36c313b0de1baca0a87be2b98cb7f7c1 (patch)
tree16e4e03716de2982eef21a5b5f270939a7164067 /libcxx/src/filesystem/operations.cpp
parentf15377084c3094ad47eca8738f15d397f558df7b (diff)
downloadllvm-3be7968c36c313b0de1baca0a87be2b98cb7f7c1.zip
llvm-3be7968c36c313b0de1baca0a87be2b98cb7f7c1.tar.gz
llvm-3be7968c36c313b0de1baca0a87be2b98cb7f7c1.tar.bz2
[libcxx] [test] Ifdef out uses of create_fifo on windows
Restructure code in directory_entry.obs/file_type_obs.pass.cpp and directory_entry.obs/hard_link_count.pass.cpp to reduce the amount of ifdeffery needed. In file_type_obs.pass.cpp, we can't inline the calls to env.create_* into the lambda calls (e.g. "test_path(env.create_*())"), because the lambda removes the referenced file, and the hardlink must be created while the earlier test file exists. In hard_link_count.pass.cpp, move restoration of the original directory permissions to the end of the lambda, so that new directory entries can be created after the lambda has run once. Differential Revision: https://reviews.llvm.org/D89948
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
0 files changed, 0 insertions, 0 deletions