Lines Matching refs:file

11 # This file implements regression tests for SQLite library.
13 # The focus of this file is testing the ability of the database to
17 # These routines allow us to simulate the kind of file damage that
22 set testdir [file dirname $argv0]
73 crashsql -delay 1 -file test.db-journal -seed $seed {
82 crashsql -delay 1 -file test.db {
90 crashsql -delay 2 -file test.db-journal {
101 crashsql -delay 3 -file test.db-journal {
111 crashsql -delay 2 -file test.db {
122 # The following tests test recovery when both the database file and the
123 # journal file contain corrupt data. This can happen after pages are
124 # written to the database file before a transaction is committed due to
128 # crash-2.2: Check the database file size looks ok.
133 # crash occurs during the main database file sync. But this isn't really
146 expr ([file size test.db] / 1024)>16
149 crashsql -delay 2 -file test.db-journal {
157 crashsql -delay 1 -file test.db {
176 # Make sure the file is much bigger than the pager-cache (10 pages). This
186 expr ([file size test.db] / 1024) > 450
192 crashsql -delay [expr $i%5 + 1] -file test.db-journal -seed $seed "
207 # database when a crash occurs during a multi-file transaction.
210 # main database journal file.
212 # attached database journal file.
214 # journal file.
225 expr ([file size test2.db] / 1024) > 450
234 set c [crashsql -delay $i -file test.db-journal -seed $::seed "
266 set c [crashsql -delay $i -file test2.db-journal -seed $::seed "
294 crashsql -delay 1 -file test.db-mj* "
317 # database when a crash occurs during a multi-file transaction. See comments
333 expr [file size test.db] / 1024
344 # The old page 4 data has been written to the journal file, but the
345 # journal file has not been sync()hronized.
349 # to the database file to make space in the cache to load a new page. The
350 # bug was that page 4 was written to the database file before the journal
352 # 6: Commit. A crash occurs during the sync of the journal file.
355 # database file and the journal file does not contain trustworthy rollback
358 crashsql -delay 1 -file test.db-journal {
374 # is correctly rolled back in the event of a crash while the database file
376 # journal file before truncation in an auto-vacuum database.
379 crashsql -delay 1 -file test.db {
388 # These test cases test the case where the master journal file name is
392 crashsql -delay 1 -file test.db {
403 seek $f [expr [file size test.db-journal] - 12]