mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 16:46:50 +00:00
unittests/Support/Path.cpp: [recursive_directory_iterator] Work around for end iterator.
FIXME: It should be more robust. llvm-svn: 146294
This commit is contained in:
parent
d00c304509
commit
134987f6e7
@ -241,8 +241,11 @@ TEST_F(FileSystemTest, DirectoryIteration) {
|
||||
for (fs::recursive_directory_iterator i(Twine(TestDirectory)
|
||||
+ "/recursive", ec), e; i != e; i.increment(ec)){
|
||||
ASSERT_NO_ERROR(ec);
|
||||
if (path::filename(i->path()) == "p1")
|
||||
if (path::filename(i->path()) == "p1") {
|
||||
i.pop();
|
||||
// FIXME: recursive_directory_iterator should be more robust.
|
||||
if (i == e) break;
|
||||
}
|
||||
if (path::filename(i->path()) == "dontlookhere")
|
||||
i.no_push();
|
||||
visited.push_back(path::filename(i->path()));
|
||||
|
Loading…
Reference in New Issue
Block a user