diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 9099b72325d..51c62f25d66 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -241,13 +241,10 @@ 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()) == "dontlookhere") - i.no_push(); - outs() << "pre-pop: " << path::filename(i->path()) << "\n"; if (path::filename(i->path()) == "p1") i.pop(); - outs() << "post-pop: " << path::filename(i->path()) << "\n"; - outs().flush(); + if (path::filename(i->path()) == "dontlookhere") + i.no_push(); visited.push_back(path::filename(i->path())); } v_t::const_iterator a0 = std::find(visited.begin(), visited.end(), "a0");