gcc/libstdc++-v3/testsuite
Jonathan Wakely 429ee11aa3 Fix semantics of Filesystem TS directory iterators
[class.directory_iterator] p4 and [directory_iterator.members] p4
require that only the default constructor and ignored permission denied
errors can create the end iterator.

	* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Remove _GLIBCXX_
	prefix from HAVE_STRUCT_DIRENT_D_TYPE.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* include/experimental/fs_dir.h (operator==, operator==):
	Use owner_before instead of pointer equality.
	(directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
	* src/filesystem/dir.cc (ErrorCode): Remove.
	(_Dir::advance): Change ErrorCode parameter to error_code*, add
	directory_options parameter and check it on error.
	(opendir): Rename to open_dir to avoid clashing with macro. Change
	ErrorCode parameter to error_code*.
	(make_shared_dir): Remove.
	(native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno.
	(directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
	(directory_iterator(const path&, directory_options, error_code*)):
	Pass options to _Dir::advance and create non-end iterator on error.
	(recursive_directory_iterator(const path&, directory_options,
	error_code*)): Clear error_code on ignored error, create non-end
	iterator otherwise.
	(recursive_directory_iterator::increment): Pass _M_options to
	_Dir::advance.
	(recursive_directory_iterator::pop): Likewise.
	* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
	New.
	* testsuite/experimental/filesystem/iterators/
	recursive_directory_iterator.cc: New.

From-SVN: r228042
2015-09-23 12:26:45 +01:00
..
17_intro Rationalise PCH headers and 17_intro/headers tests. 2015-09-11 13:25:43 +01:00
18_support libstdc++: Run tests on RTEMS 2015-09-03 05:45:33 +00:00
19_diagnostics std_c++0x_neg.cc: Add -std=c++98. 2015-05-09 00:50:30 -04:00
20_util Relax Debug Mode assertions on operator-> for smart pointers. 2015-09-07 18:17:23 +01:00
21_strings Implement N4258 noexcept for std::basic_string. 2015-09-11 12:02:14 +01:00
22_locale Fix invalid UTF-8 in wchar_t tests. 2015-09-11 14:06:42 +01:00
23_containers Allocator-extended constructors for container adaptors. 2015-09-11 10:51:29 +01:00
24_iterators Add concept checks to std::next and std::prev. 2015-09-03 15:35:43 +01:00
25_algorithms re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity) 2015-08-25 20:27:03 +00:00
26_numerics re PR libstdc++/67374 (std::cbegin can't call valarray range access functions) 2015-08-27 20:05:19 +01:00
27_io Fix invalid UTF-8 in wchar_t tests. 2015-09-11 14:06:42 +01:00
28_regex re PR libstdc++/67362 (std::regex("((.)", std::regex_constants::basic) throws) 2015-08-28 02:35:21 +00:00
29_atomics Handle alignment in __atomic_is_lock_free 2015-09-17 16:46:04 +01:00
30_threads Rename shadowed variable in libstdc++ test. 2015-09-07 12:33:20 +01:00
abi Update copyright years. 2015-01-05 13:33:28 +01:00
backward Update copyright years. 2015-01-05 13:33:28 +01:00
config Update copyright years. 2015-01-05 13:33:28 +01:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Update copyright years. 2015-01-05 13:33:28 +01:00
experimental Fix semantics of Filesystem TS directory iterators 2015-09-23 12:26:45 +01:00
ext libstdc++: Run tests on RTEMS 2015-09-03 05:45:33 +00:00
lib re PR libstdc++/66829 (FAIL: 23_containers/multiset/modifiers/erase/dr130-linkage-check.cc) 2015-07-29 15:56:11 +01:00
libstdc++-abi Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-dg Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-prettyprinters Update copyright years. 2015-01-05 13:33:28 +01:00
libstdc++-xmethods xmethods.py (UniquePtrMethodsMatcher): Add operator-> support. 2015-05-26 23:06:55 +00:00
performance Update copyright years. 2015-01-05 13:33:28 +01:00
tr1 libstdc++: Run tests on RTEMS 2015-09-03 05:45:33 +00:00
tr2 Update copyright years. 2015-01-05 13:33:28 +01:00
util Implement N4258 noexcept for std::basic_string. 2015-09-11 12:02:14 +01:00
Makefile.am Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.in libstdc++-v3/fragment.am (AM_CPPFLAGS): Add CPPFLAGS 2015-07-24 07:05:19 +00:00