From 72ddd559b8aafef402091f8e192e025022e4ebef Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 30 Oct 2020 21:25:49 +0000 Subject: [PATCH] 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 --- mlir/test/lit.cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py index 2a4bf85..e50d4b0 100644 --- a/mlir/test/lit.cfg.py +++ b/mlir/test/lit.cfg.py @@ -84,7 +84,7 @@ llvm_config.add_tool_substitutions(tools, tool_dirs) # FileCheck -enable-var-scope is enabled by default in MLIR test # This option avoids to accidentally reuse variable across -LABEL match, # it can be explicitly opted-in by prefixing the variable name with $ -config.environment['FILECHECK_OPTS'] = "-enable-var-scope" +config.environment['FILECHECK_OPTS'] = "-enable-var-scope --allow-unused-prefixes=false" # LLVM can be configured with an empty default triple -- 2.7.4