Lines Matching refs:test
19 # Also test that an SQLITE_CORRUPT error is returned if a B-Tree page
23 # $Id: corruptB.test,v 1.4 2009/07/21 19:25:24 danielk1977 Exp $
49 expr {[file size test.db] > (1024*9)}
53 forcecopy test.db bak.db
60 hexio_write test.db [expr $offset+8] [hexio_render_int32 $::root]
63 sqlite3 db test.db
72 forcecopy bak.db test.db
73 set cell_offset [hexio_get_int [hexio_read test.db [expr $offset+12] 2]]
74 hexio_write test.db [expr $offset+$cell_offset] [hexio_render_int32 $::root]
77 sqlite3 db test.db
85 forcecopy bak.db test.db
86 sqlite3 db test.db
98 forcecopy test.db bak.db
105 set iRightChild [hexio_get_int [hexio_read test.db [expr $offset+8] 4]]
107 hexio_write test.db [expr $c_offset+8] [hexio_render_int32 $::root]
110 sqlite3 db test.db
119 forcecopy bak.db test.db
120 set cell_offset [hexio_get_int [hexio_read test.db [expr $c_offset+12] 2]]
121 hexio_write test.db [expr $c_offset+$cell_offset] [hexio_render_int32 $::root]
124 sqlite3 db test.db
130 set cell_offset [hexio_get_int [hexio_read test.db [expr $offset+12] 2]]
132 hexio_get_int [hexio_read test.db [expr $offset+$cell_offset] 4]
135 hexio_write test.db [expr $c_offset+8] [hexio_render_int32 $::root]
138 sqlite3 db test.db
147 forcecopy bak.db test.db
148 set cell_offset [hexio_get_int [hexio_read test.db [expr $c_offset+12] 2]]
149 hexio_write test.db [expr $c_offset+$cell_offset] [hexio_render_int32 $::root]
152 sqlite3 db test.db
160 forcecopy bak.db test.db
161 hexio_write test.db [expr $offset+8] [hexio_render_int32 0x6FFFFFFF]
164 sqlite3 db test.db
174 forcecopy bak.db test.db
175 sqlite3 db test.db
184 set iRecord [hexio_get_int [hexio_read test.db $iCellarray 2]]
186 hexio_write test.db [expr $iPage+$iRecord+3] FF00
189 sqlite3 db test.db