OLD | NEW |
1 # 2013 May 14 | 1 # 2013 May 14 |
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 # | 11 # |
12 # Test some specific circumstances to do with shared cache mode. | 12 # Test some specific circumstances to do with shared cache mode. |
13 # | 13 # |
14 | 14 |
15 | 15 |
16 set testdir [file dirname $argv0] | 16 set testdir [file dirname $argv0] |
17 source $testdir/tester.tcl | 17 source $testdir/tester.tcl |
18 set ::testprefix close | 18 set ::testprefix close |
19 | 19 |
| 20 # This module bypasses the "-key" logic in tester.tcl, so it cannot run |
| 21 # with the codec enabled. |
| 22 do_not_use_codec |
| 23 |
20 do_execsql_test 1.0 { | 24 do_execsql_test 1.0 { |
21 CREATE TABLE t1(x); | 25 CREATE TABLE t1(x); |
22 INSERT INTO t1 VALUES('one'); | 26 INSERT INTO t1 VALUES('one'); |
23 INSERT INTO t1 VALUES('two'); | 27 INSERT INTO t1 VALUES('two'); |
24 INSERT INTO t1 VALUES('three'); | 28 INSERT INTO t1 VALUES('three'); |
25 } | 29 } |
26 db close | 30 db close |
27 | 31 |
28 do_test 1.1 { | 32 do_test 1.1 { |
29 set DB [sqlite3_open test.db] | 33 set DB [sqlite3_open test.db] |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 list [catch { | 73 list [catch { |
70 sqlite3_prepare $DB "SELECT * FROM sqlite_master" -1 dummy | 74 sqlite3_prepare $DB "SELECT * FROM sqlite_master" -1 dummy |
71 } msg] $msg | 75 } msg] $msg |
72 } {1 {(21) library routine called out of sequence}} | 76 } {1 {(21) library routine called out of sequence}} |
73 | 77 |
74 do_test 1.4.4 { | 78 do_test 1.4.4 { |
75 sqlite3_finalize $STMT | 79 sqlite3_finalize $STMT |
76 } {SQLITE_OK} | 80 } {SQLITE_OK} |
77 | 81 |
78 finish_test | 82 finish_test |
OLD | NEW |