Skip to content

Commit b54e919

Browse files
[MLGO] Fix make_corpus_script.test
This test is currently failing as the order that the files end up in the corpus description is somewhat dependent upon platform and the check is checking for a specific order. This patch switches to using the CHECK-DAG directive to make the checks order invariant to fix the broken bots.
1 parent 120e062 commit b54e919

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/utils/mlgo-utils/tests/corpus/make_corpus_script.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
## Check that we get the expected command in the global command override
1515
# CHECK: "-test"
1616
# CHECK: "has_thinlto": false
17-
## Check that the modules are in the corpus description
18-
# CHECK: "test1"
19-
# CHECK: "test2"
17+
## Check that the modules are in the corpus description (order invariant)
18+
# CHECK-DAG: "test1"
19+
# CHECK-DAG: "test2"
2020

2121
# RUN: ls %t.out.dir | FileCheck %s --check-prefix CHECK-DIR
2222

0 commit comments

Comments
 (0)