Fix a bug in the handling of sqlite3OsTruncate by the test_async.c demo.

Added trans.test to the suite of tests for asychronous I/O. (CVS 3091)

FossilOrigin-Name: 5b16c43542194d6c736bf7aadaaa7f31ff12af31
This commit is contained in:
drh
2006-02-13 18:35:06 +00:00
parent 89ea93121d
commit 97bbdc0aa2
5 changed files with 32 additions and 21 deletions
+3 -5
View File
@@ -6,7 +6,7 @@
#***********************************************************************
# This file runs all tests.
#
# $Id: async.test,v 1.3 2006/01/09 17:29:53 drh Exp $
# $Id: async.test,v 1.4 2006/02/13 18:35:06 drh Exp $
if {[catch {sqlite3async_enable}]} {
@@ -29,21 +29,19 @@ set INCLUDE {
insert.test
insert2.test
insert3.test
trans.test
}
#set INCLUDE [lrange $INCLUDE 0 0]
# Enable asynchronous IO.
sqlite3async_enable 1
sqlite3async_halt never
sqlite3async_start
rename do_test really_do_test
proc do_test {name args} {
uplevel really_do_test async_io-$name $args
sqlite3async_halt idle
sqlite3async_wait
sqlite3async_halt never
sqlite3async_start
sqlite3async_wait
}
foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
+4 -1
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is database locks.
#
# $Id: trans.test,v 1.29 2006/02/11 01:25:52 drh Exp $
# $Id: trans.test,v 1.30 2006/02/13 18:35:06 drh Exp $
set testdir [file dirname $argv0]
@@ -793,8 +793,11 @@ puts $fd {
sqlite_abort
}
close $fd
exec cp -f test.db test.db-bu1
do_test trans-8.1 {
catch {exec [info nameofexec] test.tcl}
exec cp -f test.db test.db-bu2
exec cp -f test.db-journal test.db-bu2-journal
execsql {SELECT md5sum(x,y,z) FROM t2}
} $checksum
do_test trans-8.2 {