From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 7BA26389040F; Tue, 9 Feb 2021 16:54:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BA26389040F 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 r11-7151] libstdc++: Clear up directories created by tests X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 92941cea2f05a8cf79fc71aa39fa948dcfb82d7a X-Git-Newrev: bfdb7b8c6f54807789471705a8fcd03bab3d7fc3 Message-Id: <20210209165455.7BA26389040F@sourceware.org> Date: Tue, 9 Feb 2021 16:54:55 +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: Tue, 09 Feb 2021 16:54:55 -0000 https://gcc.gnu.org/g:bfdb7b8c6f54807789471705a8fcd03bab3d7fc3 commit r11-7151-gbfdb7b8c6f54807789471705a8fcd03bab3d7fc3 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 ee16d67debd..986a8dfb2ae 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/remove_all.cc @@ -171,6 +171,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 9aca6c8af67..87fd2dde41d 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 }