From: Juergen Ributzka Date: Mon, 13 Mar 2017 21:40:20 +0000 (+0000) Subject: [Support] Follow-up for "Test directory iterators and recursive directory iterators... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa68cfd46c5fdd789979fc7dc9a2a4bd218981e1;p=llvm [Support] Follow-up for "Test directory iterators and recursive directory 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 --- diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index ad5fbffaa66..1bcc274b218 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -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()));