[Tests] Stabilize output order maps against incidental changes

The output file map is created in DenseMap order, which is an unordered
and "unstable" collection type.
This commit is contained in:
David Zarzycki
2019-03-18 07:22:23 -04:00
parent 5ca9ddc7f1
commit d2c5597707
3 changed files with 13 additions and 11 deletions

View File

@@ -123,6 +123,7 @@ void OutputFileMap::write(llvm::raw_ostream &os,
}
os << "\n";
// DenseMap is unordered. If you write a test, please sort the output.
for (auto &typeAndOutputPath : *outputMap) {
file_types::ID type = typeAndOutputPath.getFirst();
StringRef output = typeAndOutputPath.getSecond();