Minor improvements to Filesystem tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 Nov 2017 18:22:43 +0000 (18:22 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 15 Nov 2017 18:22:43 +0000 (18:22 +0000)
commit4e6c42983787bcec345526ab04a4e541e0b0afb2
tree955f0e4fccb055cb658257b3d5fee13b3bc11817
parent54b6c06b49ec3cdfafb087bdafa512b66b916c8c
Minor improvements to Filesystem tests

* testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave
error_code unset.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Check for past-the-end before dereferencing.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Likewise.

From-SVN: r254781
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/filesystem/iterators/directory_iterator.cc
libstdc++-v3/testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc
libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc