llvm.org GIT mirror llvm / aa68cfd
[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 Juergen Ributzka 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
846846 ASSERT_NO_ERROR(ec);
847847 visited.push_back(path::filename(i->path()));
848848 }
849 std::sort(visited.begin(), visited.end());
850850 expected = {"a", "b", "ba", "bb", "bc", "c", "d", "da", "dd", "ddd", "e"};
851851 ASSERT_TRUE(visited.size() == expected.size());
852852 ASSERT_TRUE(std::equal(visited.begin(), visited.end(), expected.begin()));