OLD | NEW |
1 # 2008 Sep 10 | 1 # 2008 Sep 10 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 set iRecord [hexio_get_int [hexio_read test.db $iCellarray 2]] | 180 set iRecord [hexio_get_int [hexio_read test.db $iCellarray 2]] |
181 db close | 181 db close |
182 hexio_write test.db [expr $iPage+$iRecord+3] FF00 | 182 hexio_write test.db [expr $iPage+$iRecord+3] FF00 |
183 } {2} | 183 } {2} |
184 do_test corruptB-3.1.2 { | 184 do_test corruptB-3.1.2 { |
185 sqlite3 db test.db | 185 sqlite3 db test.db |
186 catchsql { SELECT * FROM t2 } | 186 catchsql { SELECT * FROM t2 } |
187 } {1 {database disk image is malformed}} | 187 } {1 {database disk image is malformed}} |
188 | 188 |
189 finish_test | 189 finish_test |
OLD | NEW |