aboutsummaryrefslogtreecommitdiff
path: root/mptest/mptest.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-17 19:42:17 +0000
committerdrh <drh@noemail.net>2013-04-17 19:42:17 +0000
commit44fddcad02c0e3e7ec03932c8d0229792184a1dc (patch)
treebf045d8983ed3657b20da677c03bb57fee69c44a /mptest/mptest.c
parent87f9caa85ca7249d13d814993ac6e375d16b8535 (diff)
downloadsqlite-44fddcad02c0e3e7ec03932c8d0229792184a1dc.tar.gz
sqlite-44fddcad02c0e3e7ec03932c8d0229792184a1dc.zip
Fix the --match command in mptester so that it checks the entire result,
not just a prefix of the result. FossilOrigin-Name: 3e3ecad2b5d6c97032f2a9fb920c1b8a16ab8ef5
Diffstat (limited to 'mptest/mptest.c')
-rw-r--r--mptest/mptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mptest/mptest.c b/mptest/mptest.c
index 8dc95be7b..cb6dd55d9 100644
--- a/mptest/mptest.c
+++ b/mptest/mptest.c
@@ -945,7 +945,7 @@ static void runScript(
char *zAns = zScript+ii;
for(jj=7; jj<len-1 && isspace(zAns[jj]); jj++){}
zAns += jj;
- if( strncmp(sResult.z, zAns, len-jj-1) ){
+ if( len-jj-1!=sResult.n || strncmp(sResult.z, zAns, len-jj-1) ){
errorMessage("line %d of %s:\nExpected [%.*s]\n Got [%s]",
prevLine, zFilename, len-jj-1, zAns, sResult.z);
}