1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Get all tests running without memory leaks. (CVS 4714)

FossilOrigin-Name: 5807921f5a6e2e08f2c9e79aa91d8c587d64de74
This commit is contained in:
drh
2008-01-16 17:46:38 +00:00
parent db4e8867a4
commit 93aed5a177
19 changed files with 226 additions and 237 deletions

View File

@@ -1032,8 +1032,8 @@ static int unixSync(sqlite3_file *id, int flags){
static int unixTruncate(sqlite3_file *id, i64 nByte){
int rc;
assert( id );
SimulateIOError( return SQLITE_IOERR_TRUNCATE );
rc = ftruncate(((unixFile*)id)->h, (off_t)nByte);
SimulateIOError( rc=1 );
if( rc ){
return SQLITE_IOERR_TRUNCATE;
}else{