diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-10-25 16:32:37 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-10-25 16:32:37 +0100 |
commit | ec04aad76d5a4ac4759a78a04cbd950f4a1e9517 (patch) | |
tree | ed5e0dc857b8a43f528b75b3830ab61dd7929917 /gcc/fortran/trans-array.c | |
parent | 1cf1719bc07ade2e96d47c7bae00d1203c847ee0 (diff) | |
download | gcc-ec04aad76d5a4ac4759a78a04cbd950f4a1e9517.zip gcc-ec04aad76d5a4ac4759a78a04cbd950f4a1e9517.tar.gz gcc-ec04aad76d5a4ac4759a78a04cbd950f4a1e9517.tar.bz2 |
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.
From-SVN: r241521
Diffstat (limited to 'gcc/fortran/trans-array.c')
0 files changed, 0 insertions, 0 deletions