1
0
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:
dan
2016-02-01 16:36:47 +00:00
parent cddb6ba03b
commit 3b37bc4206
3 changed files with 9 additions and 8 deletions

View File

@ -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}