Skip to content

Commit f102d9d

Browse files
committed
Fix JSONCompilationDatabase.GetAllFiles after xxHash change
After 780fb24 this output changed order; update the test to match.
1 parent 9655e7e commit f102d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/unittests/Tooling/CompilationDatabaseTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ TEST(JSONCompilationDatabase, GetAllFiles) {
8686

8787
std::vector<std::string> expected_files;
8888
SmallString<16> PathStorage;
89-
llvm::sys::path::native("//net/dir/file1", PathStorage);
90-
expected_files.push_back(std::string(PathStorage.str()));
9189
llvm::sys::path::native("//net/dir/file2", PathStorage);
9290
expected_files.push_back(std::string(PathStorage.str()));
91+
llvm::sys::path::native("//net/dir/file1", PathStorage);
92+
expected_files.push_back(std::string(PathStorage.str()));
9393
llvm::sys::path::native("//net/file1", PathStorage);
9494
expected_files.push_back(std::string(PathStorage.str()));
9595
EXPECT_EQ(expected_files,

0 commit comments

Comments
 (0)