| OLD | NEW |
| 1 # 2010 September 20 | 1 # 2010 September 20 |
| 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 [313723c356] has been | 13 # This file implements tests to verify that ticket [313723c356] has been |
| 14 # fixed. | 14 # fixed. |
| 15 # | 15 # |
| 16 | 16 |
| 17 set testdir [file dirname $argv0] | 17 set testdir [file dirname $argv0] |
| 18 source $testdir/tester.tcl | 18 source $testdir/tester.tcl |
| 19 source $testdir/malloc_common.tcl | 19 source $testdir/malloc_common.tcl |
| 20 | 20 |
| 21 ifcapable !wal { finish_test ; return } | 21 if {![wal_is_capable]} { finish_test ; return } |
| 22 | 22 |
| 23 do_execsql_test tkt-313723c356.1 { | 23 do_execsql_test tkt-313723c356.1 { |
| 24 PRAGMA page_size = 1024; | 24 PRAGMA page_size = 1024; |
| 25 PRAGMA journal_mode = WAL; | 25 PRAGMA journal_mode = WAL; |
| 26 CREATE TABLE t1(a, b); | 26 CREATE TABLE t1(a, b); |
| 27 CREATE INDEX i1 ON t1(a, b); | 27 CREATE INDEX i1 ON t1(a, b); |
| 28 INSERT INTO t1 VALUES(randomblob(400), randomblob(400)); | 28 INSERT INTO t1 VALUES(randomblob(400), randomblob(400)); |
| 29 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; | 29 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; |
| 30 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; | 30 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; |
| 31 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; | 31 INSERT INTO t1 SELECT randomblob(400), randomblob(400) FROM t1; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 # cached (out-of-date) version of table t1 with the on disk (up-to-date) | 48 # cached (out-of-date) version of table t1 with the on disk (up-to-date) |
| 49 # version of index i1. | 49 # version of index i1. |
| 50 # | 50 # |
| 51 execsql { SELECT min(rowid) FROM t1 } | 51 execsql { SELECT min(rowid) FROM t1 } |
| 52 } -test { | 52 } -test { |
| 53 faultsim_test_result {0 1} | 53 faultsim_test_result {0 1} |
| 54 faultsim_integrity_check | 54 faultsim_integrity_check |
| 55 } | 55 } |
| 56 | 56 |
| 57 finish_test | 57 finish_test |
| OLD | NEW |