Lines Matching refs:test

18 # $Id: corruptC.test,v 1.14 2009/07/11 06:55:34 danielk1977 Exp $
20 catch {forcedelete test.db test.db-journal test.bu}
65 # Setup for the tests. Make a backup copy of the good database in test.bu.
68 forcecopy test.db test.bu
69 sqlite3 db test.db
70 set fsize [file size test.db]
77 set qseed [file mtime test.db]
86 # First test some specific corruption tests found from earlier runs
90 # test that a corrupt content offset size is handled (seed 5577)
93 forcecopy test.bu test.db
96 hexio_write test.db 2053 [format %02x 0x04]
98 sqlite3 db test.db
103 # test that a corrupt content offset size is handled (seed 5649)
107 # deallocate and reallocate the cell" on 2016-12-09, this test case no longer
112 forcecopy test.bu test.db
115 hexio_write test.db 27 [format %02x 0x08]
116 hexio_write test.db 233 [format %02x 0x6a]
117 hexio_write test.db 328 [format %02x 0x67]
118 hexio_write test.db 750 [format %02x 0x1f]
119 hexio_write test.db 1132 [format %02x 0x52]
120 hexio_write test.db 1133 [format %02x 0x84]
121 hexio_write test.db 1220 [format %02x 0x01]
122 hexio_write test.db 3688 [format %02x 0xc1]
123 hexio_write test.db 3714 [format %02x 0x58]
124 hexio_write test.db 3746 [format %02x 0x9a]
126 sqlite3 db test.db
131 # test that a corrupt free cell size is handled (seed 13329)
134 forcecopy test.bu test.db
137 hexio_write test.db 1094 [format %02x 0x76]
139 sqlite3 db test.db
143 # test that a corrupt free cell size is handled (seed 169571)
146 forcecopy test.bu test.db
149 hexio_write test.db 3119 [format %02x 0xdf]
151 sqlite3 db test.db
155 # test that a corrupt free cell size is handled (seed 169571)
158 forcecopy test.bu test.db
161 hexio_write test.db 3119 [format %02x 0xdf]
162 hexio_write test.db 4073 [format %02x 0xbf]
164 sqlite3 db test.db
175 # test that a corrupt free cell size is handled (seed 169595)
178 forcecopy test.bu test.db
181 hexio_write test.db 619 [format %02x 0xe2]
182 hexio_write test.db 3150 [format %02x 0xa8]
184 sqlite3 db test.db
191 forcecopy test.bu test.db
194 hexio_write test.db 3074 [format %02x 0xa0]
196 sqlite3 db test.db
207 forcecopy test.bu test.db
210 hexio_write test.db 1393 [format %02x 0x7d]
211 hexio_write test.db 84 [format %02x 0x19]
212 hexio_write test.db 3287 [format %02x 0x3b]
213 hexio_write test.db 2564 [format %02x 0xed]
214 hexio_write test.db 2139 [format %02x 0x55]
216 sqlite3 db test.db
228 forcecopy test.bu test.db
231 hexio_write test.db 2095 [format %02x 0xd6]
233 sqlite3 db test.db
240 forcecopy test.bu test.db
243 hexio_write test.db 3130 [format %02x 0x02]
245 sqlite3 db test.db
252 forcecopy test.bu test.db
255 hexio_write test.db 55 [format %02x 0xa7]
257 sqlite3 db test.db
264 forcecopy test.bu test.db
267 hexio_write test.db 974 [format %02x 0x2e]
269 sqlite3 db test.db
276 forcecopy test.bu test.db
279 hexio_write test.db 102 [format %02x 0x12]
281 sqlite3 db test.db
287 forcecopy test.bu test.db
289 sqlite3 db test.db
293 sqlite3 db test.db
294 set filesize [file size test.db]
295 hexio_write test.db [expr $filesize-2048] 00000001
300 # overread. Which caused a crash in a run of all.test once.
304 forcecopy test.bu test.db
305 hexio_write test.db 986 b9
306 sqlite3 db test.db
311 # Now test for a series of quasi-random seeds.
316 # setup for test
318 forcecopy test.bu test.db
319 sqlite3 db test.db
347 hexio_write test.db $roffset $rbyte
348 sqlite3 db test.db