From: redi Date: Tue, 27 Nov 2018 23:35:17 +0000 (+0000) Subject: Clean up temporary files created by std::filesystem testsuite X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745bbd57d9747c6f6c2251837c82c0945c6b8e39;p=thirdparty%2Fgcc.git Clean up temporary files created by std::filesystem testsuite * testsuite/27_io/filesystem/operations/canonical.cc: Remove directory created by test. * testsuite/27_io/filesystem/operations/symlink_status.cc: Remove symlink created by test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266535 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fd61db5c9ee6..748bb4ac29ee 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2018-11-27 Jonathan Wakely + * testsuite/27_io/filesystem/operations/canonical.cc: Remove + directory created by test. + * testsuite/27_io/filesystem/operations/symlink_status.cc: Remove + symlink created by test. + PR libstdc++/67843 * acinclude.m4 (GLIBCXX_ENABLE_LOCK_POLICY): Add new macro that defines _GLIBCXX_HAVE_ATOMIC_LOCK_POLICY. diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc index f7b6649adfe3..6fed419dcc92 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc @@ -36,6 +36,7 @@ test01() VERIFY( ec ); create_directory(p); + __gnu_test::scoped_file l(p, __gnu_test::scoped_file::adopt_file); auto p2 = canonical( p, ec ); compare_paths( p2, fs::current_path()/p ); VERIFY( !ec ); diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc index 919f826b9576..318a0866e56a 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc @@ -42,6 +42,7 @@ test01() fs::path link = __gnu_test::nonexistent_path(); create_directory_symlink(dot, link); + __gnu_test::scoped_file l(link, __gnu_test::scoped_file::adopt_file); st1 = fs::symlink_status(link); VERIFY( st1.type() == fs::file_type::symlink );