Skip to content

Commit

Permalink
[Support] Follow-up for "Test directory iterators and recursive direc…
Browse files Browse the repository at this point in the history
…tory iterators with broken symlinks."

Fix the test by sorting the result vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297672 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ributzka committed Mar 13, 2017
1 parent 43373e2 commit aa68cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/Support/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit aa68cfd

Please sign in to comment.