aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-11-27 23:35:17 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-11-27 23:35:17 +0000
commitc718ff4183656cfd36b63ac7afbdf2a7fd78eec6 (patch)
treec935903823ca982e3a1c6f75ca366d2890aeac50
parent9b4e458bd7a31b288e5c944cd27419a7f434367e (diff)
downloadgcc-c718ff4183656cfd36b63ac7afbdf2a7fd78eec6.zip
gcc-c718ff4183656cfd36b63ac7afbdf2a7fd78eec6.tar.gz
gcc-c718ff4183656cfd36b63ac7afbdf2a7fd78eec6.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc1
-rw-r--r--libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc1
3 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fd61db5..748bb4a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,10 @@
2018-11-27 Jonathan Wakely <jwakely@redhat.com>
+ * 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 f7b6649..6fed419 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 919f826..318a086 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 );