This is an archive of the discontinued LLVM Phabricator instance.

Improve reliability of CompilationDatabaseTest
ClosedPublic

Authored by ellis on Aug 14 2023, 10:31 AM.

Details

Summary

We've seen CompilationDatabaseTest.cpp fail because the order of the files returned by getAllFiles() was in a different order than expected. Use UnorderedElementsAreArray() to handle different file orders.

Diff Detail

Event Timeline

ellis created this revision.Aug 14 2023, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 10:31 AM
Herald added a subscriber: ChuanqiXu. · View Herald Transcript
ellis requested review of this revision.Aug 14 2023, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 10:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ellis edited the summary of this revision. (Show Details)Aug 14 2023, 10:35 AM
ellis added reviewers: klimek, kadircet, zturner.
kadircet accepted this revision.Aug 14 2023, 11:05 AM
This revision is now accepted and ready to land.Aug 14 2023, 11:05 AM
This revision was landed with ongoing or failed builds.Aug 14 2023, 1:46 PM
This revision was automatically updated to reflect the committed changes.