1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix test file busy2.test so that it works with the "inmemory_journal" permutation.

FossilOrigin-Name: b192fdddb63ac56fd6725032af110a069baac52347c0012c130bf34f3cbe69e4
This commit is contained in:
dan
2020-11-17 18:25:48 +00:00
parent ea847f1b94
commit 12c9994659
3 changed files with 13 additions and 13 deletions

View File

@ -136,7 +136,6 @@ do_multiclient_test tn {
# call to sqlite3_prepare() (or _v2(), or _v3()), it is still invoked
# the next time an SQLITE_BUSY is encountered.
#
do_multiclient_test tn {
code1 {
set ::busy_called 0
@ -158,13 +157,14 @@ do_multiclient_test tn {
do_test 3.$tn.2 {
set ::busy_called 0
list [catch { sql1 { SELECT * FROM t1 } } msg] $msg $::busy_called
} {1 {database is locked} 1}
list [catch { sql1 { SELECT * FROM t1 } } msg] $::busy_called
} {1 1}
do_test 3.$tn.3 {
set ::busy_called 0
list [catch { sql1 { SELECT * FROM t1 } } msg] $msg $::busy_called
} {1 {database is locked} 1}
list [catch { sql1 { SELECT * FROM t1 } } msg] $::busy_called
} {1 1}
}
finish_test