diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-06-28 15:56:30 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-06-30 14:16:06 +0100 |
commit | 6c96b14a19a9e6c365eacc59868a866b99f9786d (patch) | |
tree | 7d80b214df5310faec35fc1ca6d14c0c2504e2f3 /gcc | |
parent | fa22c9c7a979655efaff888138107324afc510c5 (diff) | |
download | gcc-6c96b14a19a9e6c365eacc59868a866b99f9786d.zip gcc-6c96b14a19a9e6c365eacc59868a866b99f9786d.tar.gz gcc-6c96b14a19a9e6c365eacc59868a866b99f9786d.tar.bz2 |
libstdc++: Fix experimental::filesystem::status on Windows [PR88881]
Although the Filesystem TS isn't properly supported on Windows (unlike
the C++17 Filesystem lib), most tests do pass. Two of the failures are
due to PR 88881 which was only fixed for std::filesystem not the TS.
This applies the fix to the TS implementation too.
libstdc++-v3/ChangeLog:
PR libstdc++/88881
* src/filesystem/ops.cc (has_trailing_slash): New helper
function.
(fs::status): Strip trailing slashes.
(fs::symlink_status): Likewise.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Clean the environment before each test and use TMP instead of
TMPDIR so the test passes on Windows.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions