[PATCH] D93346: [Test][FileCheck] Fix use of undef var

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 15:05:28 PST 2020


thopre created this revision.
thopre added reviewers: jhenderson, probinson, jdenny, arichardson.
thopre requested review of this revision.
Herald added a project: LLVM.

A directive with prefix NUMEXPR-CONSTRAINT-NOMATCH refers to numeric
variable UNSI which is defined by a directive with prefix CHECK, yet the
FileCheck invocation using the prefix NUMEXPR-CONSTRAINT-NOMATCH does
not look for prefix CHECK. This commit fixes that.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93346

Files:
  llvm/test/FileCheck/numeric-expression.txt


Index: llvm/test/FileCheck/numeric-expression.txt
===================================================================
--- llvm/test/FileCheck/numeric-expression.txt
+++ llvm/test/FileCheck/numeric-expression.txt
@@ -246,7 +246,7 @@
 ; Numeric expressions in default matching format and explicit matching rule using
 ; variable defined on other lines with match failure.
 RUN: %ProtectFileCheckOutput \
-RUN: not FileCheck --check-prefix NUMEXPR-CONSTRAINT-NOMATCH --input-file %s %s 2>&1 \
+RUN: not FileCheck --check-prefixes CHECK,NUMEXPR-CONSTRAINT-NOMATCH --input-file %s %s 2>&1 \
 RUN:   | FileCheck --check-prefix NUMEXPR-CONSTRAINT-NOMATCH-MSG --strict-whitespace %s
 
 USE DEF FMT EXPL NO MATCH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93346.312048.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201215/edf70259/attachment.bin>


More information about the llvm-commits mailing list