gcc/libstdc++-v3/testsuite
Jonathan Wakely 72eaf75b30 PR libstdc++/83626 Don't report errors when removing non-existent files
Backport from mainline
2018-01-05  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/83626
	* src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
	report an error for ENOENT.
	(remove_all(const path&)): Fix type of result variable.
	(remove_all(const path&, error_code&)): Use non-throwing increment
	for directory iterator. Call POSIX remove directly to avoid redundant
	calls to symlink_status. Do not report errors for ENOENT.
	* testsuite/experimental/filesystem/operations/remove_all.cc: Test
        throwing overload.

Backport from mainline
2018-01-04  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/83626
	* src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
	redundant call to ec.clear().
	(remove_all(const path&, error_code&))): Do not return an error for
	non-existent paths.
	* testsuite/experimental/filesystem/operations/remove.cc: New test.
	* testsuite/experimental/filesystem/operations/remove_all.cc: Fix
	expected results for non-existent paths.

From-SVN: r256287
2018-01-05 21:27:25 +00:00
..
17_intro re PR testsuite/81056 (FAIL: 17_intro/names.cc (test for excess errors)) 2017-08-20 19:00:59 +00:00
18_support Define __cpp_lib_byte feature-test macro 2017-10-20 19:19:09 +01:00
19_diagnostics Update copyright years. 2017-01-01 13:07:43 +01:00
20_util PR libstdc++/83427 detect weak result type from noexcept functions 2017-12-14 17:29:22 +00:00
21_strings PR libstdc++/79162 Fix std::string regression due to LWG 2946 2017-09-20 19:52:56 +01:00
22_locale Fix typo in std::wbuffer_convert 2017-12-01 17:11:59 +00:00
23_containers backport: re PR libstdc++/82522 (std::map::insert(value_type &&) not selected) 2017-12-28 05:37:54 +00:00
24_iterators Fix failing C++17 test 2017-09-20 17:51:03 +01:00
25_algorithms Fix tests for std::clamp 2017-09-21 11:11:21 +01:00
26_numerics PR libstdc++/59568 don't use putback or update value when extraction fails 2017-12-14 11:53:02 +00:00
27_io PR libstdc++/81395 fix crash when write follows large read 2017-10-23 18:16:38 +01:00
28_regex PR libstdc++/81002 fix std::basic_regex range constructor 2017-06-07 17:50:36 +01:00
29_atomics 69301.cc: Require atomic builtins. 2017-01-23 17:18:04 +00:00
30_threads PR libstdc++/79433 no #error for including headers with wrong -std 2017-10-20 16:14:29 +01:00
abi Update copyright years. 2017-01-01 13:07:43 +01:00
backward Update copyright years. 2017-01-01 13:07:43 +01:00
config Update copyright years. 2017-01-01 13:07:43 +01:00
data
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental PR libstdc++/83626 Don't report errors when removing non-existent files 2018-01-05 21:27:25 +00:00
ext PR libstdc++/81751 don't call fflush(NULL) 2017-08-14 13:14:09 +01:00
lib Define cxx11-abi effective target for libstdc++ tests 2017-01-13 14:57:33 +00:00
libstdc++-abi Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-dg Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-prettyprinters Skip tests that are incompatible with Profile Mode 2017-01-14 11:55:22 +00:00
libstdc++-xmethods Update copyright years. 2017-01-01 13:07:43 +01:00
performance Update copyright years. 2017-01-01 13:07:43 +01:00
special_functions Update copyright years. 2017-01-01 13:07:43 +01:00
tr1 Update copyright years. 2017-01-01 13:07:43 +01:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
util PR libstdc++/81092 add std::wstring symbols and bump library version 2017-06-16 13:18:53 +01:00
Makefile.am Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.in re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) 2017-01-17 10:38:48 +01:00