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
This commit is contained in:
Jonathan Wakely 2018-11-27 23:35:17 +00:00 committed by Jonathan Wakely
parent 9b4e458bd7
commit c718ff4183
3 changed files with 7 additions and 0 deletions

View 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.

View 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 );

View 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 );