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:
@@ -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}]
|
||||
|
Reference in New Issue
Block a user