[FileCheck] Make Match unittest more flexible
authorThomas Preud'homme <thomasp@graphcore.ai>
Wed, 15 Jan 2020 00:02:15 +0000 (00:02 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Mon, 20 Jan 2020 16:21:35 +0000 (16:21 +0000)
commita81e0442bdb1fafb9219b338176e00f4c9054377
tree3b383f473a8a4b1bbcbb7b4f88cd012cdcf35184
parent366356361cf3abf97fbcfe9a0467b1ed1610401f
[FileCheck] Make Match unittest more flexible

Summary:
FileCheck's Match unittest needs updating whenever some call to
initNextPattern() is inserted before its final block of checks. This
commit change usage of LineNumber inside the Tester object so that the
line number of the current pattern can be queries, thereby making the
Match test more solid.

Reviewers: jhenderson, jdenny, probinson, grimar, arichardson, rnk

Reviewed By: jhenderson

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72913
llvm/unittests/Support/FileCheckTest.cpp