1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Adjust the lock.test and lock3.test scripts so that they work with the

asynchronous VFS. (CVS 6380)

FossilOrigin-Name: 40df926b4606b3abe8c797bf17163f996bd03ad5
This commit is contained in:
drh
2009-03-24 16:55:43 +00:00
parent 9a6dedaef8
commit 37eecdd41d
5 changed files with 28 additions and 18 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is database locks.
#
# $Id: lock.test,v 1.37 2009/02/12 09:36:16 danielk1977 Exp $
# $Id: lock.test,v 1.38 2009/03/24 16:55:44 drh Exp $
set testdir [file dirname $argv0]
@ -20,10 +20,14 @@ source $testdir/tester.tcl
# Create an alternative connection to the database
#
do_test lock-1.0 {
# Give a complex pathnme to stress the path simplification logic in
# the vxworks driver.
file mkdir tempdir/t1/t2
sqlite3 db2 ./tempdir/../tempdir/t1/.//t2/../../..//test.db
if {[info exists ::ASYNC]} {
sqlite3 db2 test.db
} else {
# Give a complex pathnme to stress the path simplification logic in
# the vxworks driver.
file mkdir tempdir/t1/t2
sqlite3 db2 ./tempdir/../tempdir/t1/.//t2/../../..//test.db
}
set dummy {}
} {}
do_test lock-1.1 {