2008-11-11 21:34:35 +03:00
|
|
|
# 2008 November 11
|
|
|
|
#
|
|
|
|
# The author disclaims copyright to this source code. In place of
|
|
|
|
# a legal notice, here is a blessing:
|
|
|
|
#
|
|
|
|
# May you do good and not evil.
|
|
|
|
# May you find forgiveness for yourself and forgive others.
|
|
|
|
# May you share freely, never taking more than you give.
|
|
|
|
#
|
|
|
|
#***********************************************************************
|
|
|
|
#
|
2008-12-04 01:32:44 +03:00
|
|
|
# $Id: tkt3472.test,v 1.4 2008/12/03 22:32:45 drh Exp $
|
2008-11-11 21:34:35 +03:00
|
|
|
|
|
|
|
set testdir [file dirname $argv0]
|
|
|
|
source $testdir/tester.tcl
|
|
|
|
|
2008-12-04 01:32:44 +03:00
|
|
|
if {![info exists threadsOverrideEachOthersLocks]} {
|
2008-11-12 17:07:51 +03:00
|
|
|
finish_test
|
2008-11-13 21:02:51 +03:00
|
|
|
return
|
2008-11-12 17:07:51 +03:00
|
|
|
}
|
|
|
|
|
2008-11-11 21:34:35 +03:00
|
|
|
set ::correctvalue $threadsOverrideEachOthersLocks
|
|
|
|
puts "threadsOverrideEachOthersLocks = $::correctvalue"
|
|
|
|
|
|
|
|
do_test tkt3472-1.1 {
|
|
|
|
db close
|
|
|
|
set threadsOverrideEachOthersLocks -1
|
|
|
|
sqlite3 db test.db
|
|
|
|
set threadsOverrideEachOthersLocks
|
|
|
|
} $::correctvalue
|
|
|
|
|
|
|
|
do_test tkt3472-1.2 {
|
|
|
|
db close
|
|
|
|
set threadsOverrideEachOthersLocks -1
|
|
|
|
sqlite3 db test.db -readonly 1
|
|
|
|
set threadsOverrideEachOthersLocks
|
|
|
|
} $::correctvalue
|
|
|
|
|
|
|
|
finish_test
|