[Support] Follow-up for "Test directory iterators and recursive directory iterators with broken symlinks."

Fix the test by sorting the result vector.

llvm-svn: 297672
This commit is contained in:
Juergen Ributzka 2017-03-13 21:40:20 +00:00
parent 9dd8caad1f
commit c0d6160666
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ TEST_F(FileSystemTest, BrokenSymlinkDirectoryIteration) {
ASSERT_NO_ERROR(ec);
visited.push_back(path::filename(i->path()));
}
std::sort(visited.begin(), visited.end());
expected = {"a", "b", "ba", "bb", "bc", "c", "d", "da", "dd", "ddd", "e"};
ASSERT_TRUE(visited.size() == expected.size());
ASSERT_TRUE(std::equal(visited.begin(), visited.end(), expected.begin()));