Commit c718ff41 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 9b4e458b
2018-11-27 Jonathan Wakely <jwakely@redhat.com> 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 PR libstdc++/67843
* acinclude.m4 (GLIBCXX_ENABLE_LOCK_POLICY): Add new macro * acinclude.m4 (GLIBCXX_ENABLE_LOCK_POLICY): Add new macro
that defines _GLIBCXX_HAVE_ATOMIC_LOCK_POLICY. that defines _GLIBCXX_HAVE_ATOMIC_LOCK_POLICY.
......
...@@ -36,6 +36,7 @@ test01() ...@@ -36,6 +36,7 @@ test01()
VERIFY( ec ); VERIFY( ec );
create_directory(p); create_directory(p);
__gnu_test::scoped_file l(p, __gnu_test::scoped_file::adopt_file);
auto p2 = canonical( p, ec ); auto p2 = canonical( p, ec );
compare_paths( p2, fs::current_path()/p ); compare_paths( p2, fs::current_path()/p );
VERIFY( !ec ); VERIFY( !ec );
......
...@@ -42,6 +42,7 @@ test01() ...@@ -42,6 +42,7 @@ test01()
fs::path link = __gnu_test::nonexistent_path(); fs::path link = __gnu_test::nonexistent_path();
create_directory_symlink(dot, link); create_directory_symlink(dot, link);
__gnu_test::scoped_file l(link, __gnu_test::scoped_file::adopt_file);
st1 = fs::symlink_status(link); st1 = fs::symlink_status(link);
VERIFY( st1.type() == fs::file_type::symlink ); VERIFY( st1.type() == fs::file_type::symlink );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment