Lines Matching refs:file
12 # This file contains tests for using WAL databases in read-only mode.
15 set testdir [file dirname $argv0]
34 seek $fd [expr [file size test.db-shm]-1]
42 # Most systems allocate the *-shm file in 32KB trunks. But on UNIX systems
44 # file is allocated in page-sized units (since you cannot mmap part of
46 # possible *-shm file (i.e. the greater of 32KB and the system page-size).
52 set MINSHMSZ [file size test.db-shm]
87 file exists test.db-shm
93 sqlite3 db file:test.db2?readonly_shm=1
122 file exists test.db-shm
128 sqlite3 db file:test.db2?readonly_shm=1
151 # 3.1.*: That a readonly_shm connection can read a database file if both
155 # zero byte *-wal file, some other connection modifies the db, then
156 # does "PRAGMA wal_checkpoint=truncate" to truncate the wal file
160 # file, the readonly_shm client reruns recovery.
166 list [file exists test.db-wal] [file exists test.db-shm]
172 sqlite3 db file:test.db?readonly_shm=1
178 list [file size test.db-wal] [file size test.db-shm]
188 list [file size test.db-wal] [file size test.db-shm]
200 list [file size test.db-wal] [file size test.db-shm]
203 code1 { sqlite3 db file:test.db?readonly_shm=1 }
214 list [file size test.db-wal] [file size test.db-shm]
243 code2 { sqlite3 db2 file:test.db2?readonly_shm=1 }
280 set sz [file size test.db-wal]
288 code2 { sqlite3 db2 file:test.db2?readonly_shm=1 }
321 code2 { sqlite3 db2 file:test.db2?readonly_shm=1 }
330 if {$op=="xRead" && [file tail [lindex $args 0]]=="test.db2-wal"} {
338 sqlite3 db file:test.db2?vfs=tvfs
384 if {$op=="xRead" && [file tail [lindex $args 0]]=="test.db2-wal"} {
398 sqlite3 db file:test.db2?readonly_shm=1&vfs=tvfs