[Mlir-commits] [mlir] 72ddd55 - Use `--allow-unused-prefixes=false` by default for FileCheck in MLIR testsuite

Mehdi Amini llvmlistbot at llvm.org
Fri Oct 30 14:46:29 PDT 2020


Author: Mehdi Amini
Date: 2020-10-30T21:46:15Z
New Revision: 72ddd559b8aafef402091f8e192e025022e4ebef

URL: https://github.com/llvm/llvm-project/commit/72ddd559b8aafef402091f8e192e025022e4ebef
DIFF: https://github.com/llvm/llvm-project/commit/72ddd559b8aafef402091f8e192e025022e4ebef.diff

LOG: 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

Added: 
    

Modified: 
    mlir/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py
index 2a4bf85f9770..e50d4b0b8049 100644
--- a/mlir/test/lit.cfg.py
+++ b/mlir/test/lit.cfg.py
@@ -84,7 +84,7 @@
 # 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


        


More information about the Mlir-commits mailing list