From c718ff4183656cfd36b63ac7afbdf2a7fd78eec6 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 27 Nov 2018 23:35:17 +0000 Subject: [PATCH] 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. From-SVN: r266535 --- libstdc++-v3/ChangeLog | 5 +++++ .../testsuite/27_io/filesystem/operations/canonical.cc | 1 + .../testsuite/27_io/filesystem/operations/symlink_status.cc | 1 + 3 files changed, 7 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fd61db5c9ee..748bb4ac29e 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 f7b6649adfe..6fed419dcc9 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 919f826b957..318a0866e56 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 ); -- 2.30.2