[llvm] r272940 - Make check lines not match themselves.

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 12:38:48 PDT 2016


Author: probinson
Date: Thu Jun 16 14:38:48 2016
New Revision: 272940

URL: http://llvm.org/viewvc/llvm-project?rev=272940&view=rev
Log:
Make check lines not match themselves.
Noticed during review of the recent FileCheck change.

Modified:
    llvm/trunk/test/FileCheck/check-substring-multi-prefix.txt

Modified: llvm/trunk/test/FileCheck/check-substring-multi-prefix.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FileCheck/check-substring-multi-prefix.txt?rev=272940&r1=272939&r2=272940&view=diff
==============================================================================
--- llvm/trunk/test/FileCheck/check-substring-multi-prefix.txt (original)
+++ llvm/trunk/test/FileCheck/check-substring-multi-prefix.txt Thu Jun 16 14:38:48 2016
@@ -4,6 +4,7 @@ foo
 bar
 buzz
 
-OVERLAP: foo
-AAAOVERLAP: bar
-OVERLAP: buzz
+// Use regex notation so the checks don't match themselves.
+OVERLAP: fo{{o}}
+AAAOVERLAP: ba{{r}}
+OVERLAP: buz{{z}}




More information about the llvm-commits mailing list