1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Ensure that thread001.test and thread002.test reset the global shared-cache-enabled setting before they finish. (CVS 6253)

FossilOrigin-Name: 416288a9fa39c7c4d9d414de18edc0423ed83794
This commit is contained in:
danielk1977
2009-02-04 11:57:46 +00:00
parent 651a52fac2
commit 8a569e2936
4 changed files with 15 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
# This test attempts to deadlock SQLite in shared-cache mode.
#
#
# $Id: thread002.test,v 1.4 2008/10/07 15:25:49 drh Exp $
# $Id: thread002.test,v 1.5 2009/02/04 11:57:46 danielk1977 Exp $
set testdir [file dirname $argv0]
@@ -28,7 +28,7 @@ ifcapable !attach||!mutex {
}
db close
sqlite3_enable_shared_cache 1
set ::enable_shared_cache [sqlite3_enable_shared_cache 1]
set ::NTHREAD 10
@@ -106,4 +106,5 @@ for {set ii 0} {$ii < 3} {incr ii} {
} [list [expr 1 + $::NTHREAD*100] ok]
}
sqlite3_enable_shared_cache $::enable_shared_cache
finish_test