]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Clean up temporary files created by std::filesystem testsuite
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 Nov 2018 23:35:17 +0000 (23:35 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 27 Nov 2018 23:35:17 +0000 (23:35 +0000)
* 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
libstdc++-v3/testsuite/27_io/filesystem/operations/canonical.cc
libstdc++-v3/testsuite/27_io/filesystem/operations/symlink_status.cc

index fd61db5c9ee6cc4bd29ce6ec6f37eb692d88d218..748bb4ac29ee4c5741be311d0829cfcd1ed87627 100644 (file)
@@ -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.
index f7b6649adfe30d9f39580b96c6afb11961337828..6fed419dcc92af9d50c5f1d6e06f4612ac86d58b 100644 (file)
@@ -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 );
index 919f826b957681afd7504b2d8048452c7143bb6c..318a0866e56af3e69b6fd789ac4bd42957f47011 100644 (file)
@@ -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 );