OLD | NEW |
1 # 2006 February 10 | 1 # 2006 February 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 #*********************************************************************** |
11 # This file implements regression tests for SQLite library. | 11 # This file implements regression tests for SQLite library. |
12 # | 12 # |
13 # This file implements tests to verify that ticket #1667 has been | 13 # This file implements tests to verify that ticket #1667 has been |
14 # fixed. | 14 # fixed. |
15 # | 15 # |
16 # | 16 # |
17 # $Id: tkt1667.test,v 1.4 2009/02/05 17:00:54 drh Exp $ | 17 # $Id: tkt1667.test,v 1.4 2009/02/05 17:00:54 drh Exp $ |
18 | 18 |
19 set testdir [file dirname $argv0] | 19 set testdir [file dirname $argv0] |
20 source $testdir/tester.tcl | 20 source $testdir/tester.tcl |
21 | 21 |
22 ifcapable !autovacuum||!tclvar { | 22 ifcapable !autovacuum||!tclvar { |
23 finish_test | 23 finish_test |
24 return | 24 return |
25 } | 25 } |
26 | 26 |
27 db close | 27 db close |
28 file delete -force test.db test.db-journal | 28 forcedelete test.db test.db-journal |
29 | 29 |
30 # Set the pending byte offset such that the page it is on is | 30 # Set the pending byte offset such that the page it is on is |
31 # the first autovacuum pointer map page in the file (assume a page | 31 # the first autovacuum pointer map page in the file (assume a page |
32 # size of 1024). | 32 # size of 1024). |
33 | 33 |
34 set first_ptrmap_page [expr 1024/5 + 3] | 34 set first_ptrmap_page [expr 1024/5 + 3] |
35 sqlite3_test_control_pending_byte [expr 1024 * ($first_ptrmap_page-1)] | 35 sqlite3_test_control_pending_byte [expr 1024 * ($first_ptrmap_page-1)] |
36 | 36 |
37 sqlite3 db test.db | 37 sqlite3 db test.db |
38 | 38 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 } {} | 75 } {} |
76 do_test tkt1667-4.1 { | 76 do_test tkt1667-4.1 { |
77 execsql { | 77 execsql { |
78 DELETE FROM t1; | 78 DELETE FROM t1; |
79 } | 79 } |
80 } {} | 80 } {} |
81 integrity_check tkt1667-4.2 | 81 integrity_check tkt1667-4.2 |
82 | 82 |
83 finish_test | 83 finish_test |
OLD | NEW |