mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Update walcrash.test to ensure that, during a particular test, enough data is written to cause SQLite to sync the wal file 14 times.
FossilOrigin-Name: 5d7c092869137a0ba69f93324fe4ed56a05b5985
This commit is contained in:
@ -237,12 +237,13 @@ for {set i 1} {$i < $REPEATS} {incr i} {
|
||||
INSERT INTO t1 VALUES(randomblob(9000));
|
||||
INSERT INTO t1 VALUES(randomblob(9000));
|
||||
INSERT INTO t1 VALUES(randomblob(9000));
|
||||
INSERT INTO t1 VALUES(randomblob(9000));
|
||||
}
|
||||
} {1 {child process exited abnormally}}
|
||||
|
||||
do_test walcrash-6.$i.2 {
|
||||
sqlite3 db test.db
|
||||
execsql { SELECT count(*)==34 OR count(*)==35 FROM t1 WHERE x != 1 }
|
||||
execsql { SELECT count(*) BETWEEN 34 AND 36 FROM t1 WHERE x != 1 }
|
||||
} {1}
|
||||
do_test walcrash-6.$i.3 { execsql { PRAGMA main.integrity_check } } {ok}
|
||||
do_test walcrash-6.$i.4 { execsql { PRAGMA main.journal_mode } } {wal}
|
||||
|
Reference in New Issue
Block a user