From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 6F9933858001; Wed, 13 Oct 2021 19:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F9933858001 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r9-9775] libstdc++: Clear up directories created by tests X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-9 X-Git-Oldrev: 081f08b80db2ce8a10375b3af118db008308affc X-Git-Newrev: e4f3b1e502af237fbdb6ae3ce398fc79e9050d32 Message-Id: <20211013194229.6F9933858001@sourceware.org> Date: Wed, 13 Oct 2021 19:42:29 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2021 19:42:29 -0000 https://gcc.gnu.org/g:e4f3b1e502af237fbdb6ae3ce398fc79e9050d32 commit r9-9775-ge4f3b1e502af237fbdb6ae3ce398fc79e9050d32 Author: Jonathan Wakely Date: Tue Feb 9 16:53:56 2021 +0000 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. Diff: --- libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc | 2 ++ libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc index b0b176fc656..aef29cc71a0 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc @@ -169,6 +169,8 @@ test04() } fs::permissions(dir, fs::perms::owner_write, fs::perm_options::add); + fs::remove_all(dir, ec); + f.path.clear(); #endif } diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc index 9d51a66c71f..c233b60c550 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 }