Reset the writer-thread halt criteria after halting the thread. (CVS 4528)

FossilOrigin-Name: ecbff972a1f5c7d846c322c435fa73584655b7f0
This commit is contained in:
danielk1977
2007-11-05 17:01:08 +00:00
parent 662278e4de
commit 7eb42c8204
5 changed files with 18 additions and 12 deletions
+4 -1
View File
@@ -6,7 +6,7 @@
#***********************************************************************
# This file runs all tests.
#
# $Id: async.test,v 1.12 2007/09/14 16:20:01 danielk1977 Exp $
# $Id: async.test,v 1.13 2007/11/05 17:01:08 danielk1977 Exp $
if {[catch {sqlite3async_enable}]} {
@@ -47,6 +47,7 @@ proc do_test {name args} {
sqlite3async_start
sqlite3async_halt idle
sqlite3async_wait
sqlite3async_halt never
}
foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
@@ -62,6 +63,7 @@ foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
sqlite3async_halt idle
sqlite3async_start
sqlite3async_wait
sqlite3async_halt never
}
# Flush the write-queue and disable asynchronous IO. This should ensure
@@ -70,6 +72,7 @@ set sqlite3async_trace 1
sqlite3async_halt idle
sqlite3async_start
sqlite3async_wait
sqlite3async_halt never
sqlite3async_enable 0
set sqlite3async_trace 0
+3 -1
View File
@@ -5,7 +5,7 @@
#
#***********************************************************************
#
# $Id: async2.test,v 1.8 2007/09/05 16:54:41 danielk1977 Exp $
# $Id: async2.test,v 1.9 2007/11/05 17:01:08 danielk1977 Exp $
set testdir [file dirname $argv0]
@@ -71,6 +71,7 @@ foreach err [list ioerr malloc-transient malloc-persistent] {
sqlite3async_halt idle
sqlite3async_start
sqlite3async_wait
sqlite3async_halt never
sqlite3async_enable 0
set ::sqlite_io_error_pending 0
@@ -123,5 +124,6 @@ catch {db close}
sqlite3async_halt idle
sqlite3async_start
sqlite3async_wait
sqlite3async_halt never
finish_test
+2 -1
View File
@@ -13,7 +13,7 @@
# Specifically, it tests that the xFullPathname() method of
# of the asynchronous vfs works correctly.
#
# $Id: async3.test,v 1.2 2007/09/05 16:54:41 danielk1977 Exp $
# $Id: async3.test,v 1.3 2007/11/05 17:01:08 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -69,5 +69,6 @@ foreach p $paths {
db close
sqlite3async_halt idle
sqlite3async_wait
sqlite3async_halt never
sqlite3async_enable 0
finish_test