diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-02-09 16:53:56 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-02-09 16:54:41 +0000 |
commit | bfdb7b8c6f54807789471705a8fcd03bab3d7fc3 (patch) | |
tree | 65bacb57689053304f9243d1888899b907a5bc64 /libstdc++-v3/testsuite/experimental/filesystem | |
parent | 92941cea2f05a8cf79fc71aa39fa948dcfb82d7a (diff) | |
download | gcc-bfdb7b8c6f54807789471705a8fcd03bab3d7fc3.zip gcc-bfdb7b8c6f54807789471705a8fcd03bab3d7fc3.tar.gz gcc-bfdb7b8c6f54807789471705a8fcd03bab3d7fc3.tar.bz2 |
libstdc++: Clear up directories created by tests
libstdc++-v3/ChangeLog:
* testsuite/27_io/filesystem/operations/remove_all.cc: Remove
test directory after making it writable again.
* testsuite/experimental/filesystem/operations/remove_all.cc:
Likewise.
Diffstat (limited to 'libstdc++-v3/testsuite/experimental/filesystem')
-rw-r--r-- | libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc index 9aca6c8..87fd2dd 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc @@ -137,6 +137,8 @@ test04() } fs::permissions(dir, fs::perms::owner_write|fs::perms::add_perms); + fs::remove_all(dir, ec); + f.path.clear(); #endif } |