1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Change a testcase() added by the previous checkin into an assert().

FossilOrigin-Name: 6f3dad32aa0e1e9ee374302c82bea9bd60d5854b
This commit is contained in:
drh
2011-02-19 17:02:44 +00:00
parent ab1cc7462f
commit c90e0811d8
3 changed files with 11 additions and 11 deletions

View File

@@ -2540,7 +2540,7 @@ static int walRestartLog(Wal *pWal){
int notUsed;
rc = walTryBeginRead(pWal, &notUsed, 1, ++cnt);
}while( rc==WAL_RETRY );
testcase( (rc&0xff)==SQLITE_BUSY );
assert( (rc&0xff)!=SQLITE_BUSY ); /* BUSY not possible when useWal==1 */
testcase( (rc&0xff)==SQLITE_IOERR );
testcase( rc==SQLITE_PROTOCOL );
testcase( rc==SQLITE_OK );