[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
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index ad5fbff..1bcc274 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -847,7 +847,7 @@
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()));