1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add fault-injection tests for the code in test_stat.c.

FossilOrigin-Name: ea5e0b74c997492025225cd86e65e8a8c86ca4a0
This commit is contained in:
dan
2015-04-27 19:53:55 +00:00
parent a30c158c38
commit 995f8b9d73
5 changed files with 121 additions and 56 deletions

View File

@@ -6107,8 +6107,9 @@ case OP_VOpen: {
pCur->pVtabCursor = pVtabCursor;
pVtab->nRef++;
}else{
db->mallocFailed = 1;
assert( db->mallocFailed );
pModule->xClose(pVtabCursor);
goto no_mem;
}
}
break;