Skip to content

Commit 46478d8

Browse files
joker-epharichardson
authored andcommitted
Use --allow-unused-prefixes=false by default for FileCheck in MLIR testsuite
This option catches unexpected mismatch when a prefix is given to FileCheck on the command line but never matches a single line in the test. See http://lists.llvm.org/pipermail/llvm-dev/2020-October/146162.html for more info. Differential Revision: https://reviews.llvm.org/D90501
2 parents 85837b3 + 72ddd55 commit 46478d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/lit.cfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
# FileCheck -enable-var-scope is enabled by default in MLIR test
8585
# This option avoids to accidentally reuse variable across -LABEL match,
8686
# it can be explicitly opted-in by prefixing the variable name with $
87-
config.environment['FILECHECK_OPTS'] = "-enable-var-scope"
87+
config.environment['FILECHECK_OPTS'] = "-enable-var-scope --allow-unused-prefixes=false"
8888

8989

9090
# LLVM can be configured with an empty default triple

0 commit comments

Comments
 (0)