mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Update thread tests to clear the sqlite_open_file_count counter at the
end. This counter is not threadsafe and can end up with an invalid value at the end of the thread tests. (CVS 6289) FossilOrigin-Name: 8c4d71a169e529964d2d0cfba82bbad66a0bcd12
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#
|
||||
#***********************************************************************
|
||||
#
|
||||
# $Id: thread001.test,v 1.8 2009/02/04 11:57:46 danielk1977 Exp $
|
||||
# $Id: thread001.test,v 1.9 2009/02/12 17:06:41 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
@@ -147,4 +147,5 @@ foreach {tn same_db shared_cache} [list \
|
||||
}
|
||||
|
||||
sqlite3_enable_shared_cache $::enable_shared_cache
|
||||
set sqlite_open_file_count 0
|
||||
finish_test
|
||||
|
@@ -12,7 +12,7 @@
|
||||
# This test attempts to deadlock SQLite in shared-cache mode.
|
||||
#
|
||||
#
|
||||
# $Id: thread002.test,v 1.5 2009/02/04 11:57:46 danielk1977 Exp $
|
||||
# $Id: thread002.test,v 1.6 2009/02/12 17:06:41 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
@@ -107,4 +107,5 @@ for {set ii 0} {$ii < 3} {incr ii} {
|
||||
}
|
||||
|
||||
sqlite3_enable_shared_cache $::enable_shared_cache
|
||||
set sqlite_open_file_count 0
|
||||
finish_test
|
||||
|
@@ -12,7 +12,7 @@
|
||||
# This file contains tests that attempt to break the pcache module
|
||||
# by bombarding it with simultaneous requests from multiple threads.
|
||||
#
|
||||
# $Id: thread003.test,v 1.5 2008/10/07 15:25:49 drh Exp $
|
||||
# $Id: thread003.test,v 1.6 2009/02/12 17:06:41 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
@@ -193,4 +193,5 @@ do_test thread003.4 {
|
||||
expr 0
|
||||
} {0}
|
||||
|
||||
set sqlite_open_file_count 0
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user