libstdc++/71004 fix recent additions to testcase

PR libstdc++/71004
	* testsuite/experimental/filesystem/iterators/
	recursive_directory_iterator.cc: Fix test02 to not call member
	functions on invalid iterator, and use VERIFY not assert.

From-SVN: r236028
This commit is contained in:
Jonathan Wakely 2016-05-09 12:50:01 +01:00 committed by Jonathan Wakely
parent 035b8879ac
commit 7972e24663
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2016-05-09 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/71004
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Fix test02 to not call member
functions on invalid iterator, and use VERIFY not assert.
2016-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
Avoid endless run-time recursion for copying single-element

View File

@ -100,15 +100,16 @@ test01()
void
test02()
{
bool test __attribute__((unused)) = false;
// libstdc++71004
const fs::recursive_directory_iterator it;
assert( it.options() == fs::directory_options{} );
assert( it.depth() == 0 );
assert(it.recursion_pending() == false);
VERIFY( it == fs::recursive_directory_iterator() );
}
int
main()
{
test01();
test02();
}