[clang][deps] Fix failing modules.cpp test
authorJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 10:55:32 +0000 (12:55 +0200)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 10:55:56 +0000 (12:55 +0200)
commit1d8882b5e44e577f226b7a5a83c27df3b16b3ab6
treefffa3f811a701fec915a7fc9d034cba7bb0f8ef8
parent9e77526d467340ba4486a471c9ef3f7c859f2b60
[clang][deps] Fix failing modules.cpp test

Commit d8bab69ead22a10dc4cdb2e36f6ea6fdfe774e2e updated the ClangScanDeps/modules.cpp test. The new `{{.*}}` regex is supposed to only match `modules_cdb_input.o`, `a.o` or `b.o`. However, due to non-determinism, this can sometimes also match `modules_cdb_input2.o`, causing match failure on the next line. This commit changes the regex to only match one of the three valid cases.

Buildbot failure: https://lab.llvm.org/buildbot/#/builders/109/builds/16675
clang/test/ClangScanDeps/modules.cpp