aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-06-14 12:55:32 +0200
committerJan Svoboda <jan_svoboda@apple.com>2021-06-14 12:55:56 +0200
commit1d8882b5e44e577f226b7a5a83c27df3b16b3ab6 (patch)
treefffa3f811a701fec915a7fc9d034cba7bb0f8ef8
parent9e77526d467340ba4486a471c9ef3f7c859f2b60 (diff)
downloadllvm-1d8882b5e44e577f226b7a5a83c27df3b16b3ab6.zip
llvm-1d8882b5e44e577f226b7a5a83c27df3b16b3ab6.tar.gz
llvm-1d8882b5e44e577f226b7a5a83c27df3b16b3ab6.tar.bz2
[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
-rw-r--r--clang/test/ClangScanDeps/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/ClangScanDeps/modules.cpp b/clang/test/ClangScanDeps/modules.cpp
index b7daf51..af7cdcb 100644
--- a/clang/test/ClangScanDeps/modules.cpp
+++ b/clang/test/ClangScanDeps/modules.cpp
@@ -48,7 +48,7 @@
// CHECK1-NEXT: Inputs{{/|\\}}header2.h
// CHECK1: Inputs{{/|\\}}header.h
-// CHECK2: {{.*}}.o:
+// CHECK2: {{(modules_cdb_input)|(a)|(b)}}.o:
// CHECK2-NEXT: modules_cdb_input.cpp
// CHECK2-NEXT: Inputs{{/|\\}}module.modulemap
// CHECK2-NEXT: Inputs{{/|\\}}header.h