r241521 - in /trunk/libstdc++-v3: ChangeLog src...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Oct 25 15:32:00 GMT 2016


Author: redi
Date: Tue Oct 25 15:32:37 2016
New Revision: 241521

URL: https://gcc.gnu.org/viewcvs?rev=241521&root=gcc&view=rev
Log:
Fix error handling in copy_file and equivalent

	* src/filesystem/ops.cc (do_copy_file): Report an error if source or
	destination is not a regular file (LWG 2712).
	(equivalent): Fix error handling and result when only one file exists.
	* testsuite/experimental/filesystem/operations/copy.cc: Remove files
	created by tests. Test copying directories.
	* testsuite/experimental/filesystem/operations/copy_file.cc: Remove
	files created by tests.
	* testsuite/experimental/filesystem/operations/equivalent.cc: New.
	* testsuite/experimental/filesystem/operations/is_empty.cc: New.
	* testsuite/experimental/filesystem/operations/read_symlink.cc: Remove
	file created by test.
	* testsuite/experimental/filesystem/operations/remove_all.cc: New.
	* testsuite/util/testsuite_fs.h (~scoped_file): Only try to remove
	file if path is non-empty, to support removal by other means.

Added:
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/equivalent.cc
      - copied, changed from r241511, trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/read_symlink.cc
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/is_empty.cc
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/remove_all.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/filesystem/ops.cc
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc
    trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/read_symlink.cc
    trunk/libstdc++-v3/testsuite/util/testsuite_fs.h



More information about the Libstdc++-cvs mailing list