aboutsummaryrefslogtreecommitdiff
path: root/test/shared.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-01-23 21:38:03 +0000
committerdrh <drh@noemail.net>2006-01-23 21:38:03 +0000
commitc693e9e69322f48eb94e002c3bcd65108cb6c229 (patch)
tree1b17257ba269e6764438ab67d92eb115e2d58241 /test/shared.test
parent1b91c729b5b61dc9cb2c84328b7318191504524c (diff)
downloadsqlite-c693e9e69322f48eb94e002c3bcd65108cb6c229.tar.gz
sqlite-c693e9e69322f48eb94e002c3bcd65108cb6c229.zip
Fix the shared pager tests so that they work under windows. (CVS 3013)
FossilOrigin-Name: 4a1a9f3e9df6588bcd4da13456790fbbc58f66de
Diffstat (limited to 'test/shared.test')
-rw-r--r--test/shared.test14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/shared.test b/test/shared.test
index 8eea636d9..86fdf8f18 100644
--- a/test/shared.test
+++ b/test/shared.test
@@ -9,7 +9,7 @@
#
#***********************************************************************
#
-# $Id: shared.test,v 1.20 2006/01/23 05:50:58 danielk1977 Exp $
+# $Id: shared.test,v 1.21 2006/01/23 21:38:03 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -146,7 +146,11 @@ do_test shared-$av.2.1 {
# Open connection db3 to the database. Use a different path to the same
# file so that db3 does *not* share the same pager cache as db and db2
# (there should be two open file handles).
- sqlite3 db3 ./test.db
+ if {$::tcl_platform(platform)=="unix"} {
+ sqlite3 db3 ./test.db
+ } else {
+ sqlite3 db3 TEST.DB
+ }
set ::sqlite_open_file_count
} {2}
do_test shared-$av.2.2 {
@@ -739,7 +743,11 @@ do_test shared-$av.10.2 {
do_test shared-$av.10.3 {
# An external connection should be able to read the database, but not
# prepare a write operation.
- sqlite3 db3 ./test.db
+ if {$::tcl_platform(platform)=="unix"} {
+ sqlite3 db3 ./test.db
+ } else {
+ sqlite3 db3 TEST.DB
+ }
execsql {
SELECT * FROM ab;
} db3