[all-commits] [llvm/llvm-project] 9e11d6: Improve reliability of CompilationDatabaseTest

Ellis Hoag via All-commits all-commits at lists.llvm.org
Mon Aug 14 13:46:35 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e11d6850a5a5a3518f300769724a5c13d2e6ec6
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M clang/unittests/Tooling/CompilationDatabaseTest.cpp

  Log Message:
  Improve reliability of CompilationDatabaseTest

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.

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D157904

More information about the All-commits mailing list