mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Changes to test scripts so that the "inmemory_journal" permutation works with [ef126e775a].
FossilOrigin-Name: f553c8ed04b4b2df8ff4929e0754e3ffd1d01ba4
This commit is contained in:
@ -298,15 +298,17 @@ ifcapable {trigger} {
|
||||
|
||||
# Try to open a database with a corrupt database file.
|
||||
#
|
||||
do_test main-2.0 {
|
||||
catch {db close}
|
||||
file delete -force test.db
|
||||
set fd [open test.db w]
|
||||
puts $fd hi!
|
||||
close $fd
|
||||
set v [catch {sqlite3 db test.db} msg]
|
||||
if {$v} {lappend v $msg} {lappend v {}}
|
||||
} {0 {}}
|
||||
if {[permutation] == ""} {
|
||||
do_test main-2.0 {
|
||||
catch {db close}
|
||||
file delete -force test.db
|
||||
set fd [open test.db w]
|
||||
puts $fd hi!
|
||||
close $fd
|
||||
set v [catch {sqlite3 db test.db} msg]
|
||||
if {$v} {lappend v $msg} {lappend v {}}
|
||||
} {0 {}}
|
||||
}
|
||||
|
||||
# Here are some tests for tokenize.c.
|
||||
#
|
||||
|
Reference in New Issue
Block a user