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

Have test_vfs.c simulate IO errors in xShmLock.

FossilOrigin-Name: fcbf7cf189506e43fc2f0820aedffb195038d3a9
This commit is contained in:
dan
2010-06-03 18:20:19 +00:00
parent 05cb5b244b
commit 961ff45104
5 changed files with 40 additions and 24 deletions

View File

@@ -657,6 +657,10 @@ static int tvfsShmLock(
);
tvfsResultCode(p, &rc);
}
if( rc==SQLITE_OK && p->mask&TESTVFS_SHMLOCK_MASK && tvfsInjectIoerr(p) ){
rc = SQLITE_IOERR;
}
return rc;
}