diff options
author | drh <drh@noemail.net> | 2008-01-16 17:46:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-01-16 17:46:38 +0000 |
commit | 93aed5a177e9e283e010ef1762029579292870dc (patch) | |
tree | 6b5960d57a44397d3887b3fccbad352a2707f130 /src/os_unix.c | |
parent | db4e8867a4f0d58ccf539e595095b0f45ee37d47 (diff) | |
download | sqlite-93aed5a177e9e283e010ef1762029579292870dc.tar.gz sqlite-93aed5a177e9e283e010ef1762029579292870dc.zip |
Get all tests running without memory leaks. (CVS 4714)
FossilOrigin-Name: 5807921f5a6e2e08f2c9e79aa91d8c587d64de74
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 73fb65f5e..6f9b3c02d 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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{ |