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

Fix some problems in async2.test. No code changes. (CVS 4333)

FossilOrigin-Name: d80d87c239df06ef2182bc2b78e6d4c1852d28c9
This commit is contained in:
danielk1977
2007-08-30 10:49:54 +00:00
parent 992772c867
commit eacb6c59bc
3 changed files with 14 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
#
#***********************************************************************
#
# $Id: async2.test,v 1.5 2007/08/25 12:39:29 danielk1977 Exp $
# $Id: async2.test,v 1.6 2007/08/30 10:49:55 danielk1977 Exp $
set testdir [file dirname $argv0]
@@ -47,11 +47,11 @@ set sql_script {
db close
foreach err [list ioerr malloc] {
foreach err [list ioerr malloc-transient malloc-persistent] {
set ::go 1
for {set n 1} {$::go} {incr n} {
set ::sqlite_io_error_pending 0
sqlite3_memdebug_fail -1 0
sqlite3_memdebug_fail -1
file delete -force test.db test.db-journal
sqlite3 db test.db
execsql $::setup_script
@@ -63,15 +63,16 @@ foreach err [list ioerr malloc] {
db close
switch -- $err {
ioerr { set ::sqlite_io_error_pending $n }
malloc { sqlite3_memdebug_fail $n 1 }
ioerr { set ::sqlite_io_error_pending $n }
malloc-persistent { sqlite3_memdebug_fail $n -repeat 1 }
malloc-transient { sqlite3_memdebug_fail $n -repeat 0 }
}
sqlite3async_halt idle
sqlite3async_start
sqlite3async_wait
set ::sqlite_io_error_pending 0
sqlite3_memdebug_fail -1 0
sqlite3_memdebug_fail -1
sqlite3 db test.db
set c [db eval {SELECT c FROM counter LIMIT 1}]