[FileCheck] Fix a bug that cause FileCheck to misidentify check-prefix
authorRui Ueyama <ruiu@google.com>
Mon, 12 Aug 2013 23:05:59 +0000 (23:05 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 12 Aug 2013 23:05:59 +0000 (23:05 +0000)
commitd9a84efe44db2f4d983e49bc7370fc8cef449214
treea660f92e51db1c5a2da44f523fe66fd5ab4843e3
parentd3d5e6d8eb8f4bbb26decb582f0730600ed8a53d
[FileCheck] Fix a bug that cause FileCheck to misidentify check-prefix

FileCheck should check to make sure the prefix was found, and not a word
containing it (e.g -check-prefix=BASEREL shouldn't match NOBASEREL).

Patch by Ron Ofir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188221 91177308-0d34-0410-b5e6-96231b3b80d8
test/FileCheck/check-prefixes.txt [new file with mode: 0644]
test/FileCheck/validate-check-prefix.txt [new file with mode: 0644]
utils/FileCheck/FileCheck.cpp