OLD | NEW |
1 # 2008 August 01 | 1 # 2008 August 01 |
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 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 # The tests in this file configure the lookaside allocator after a | 24 # The tests in this file configure the lookaside allocator after a |
25 # connection is opened. This will not work if there is any "presql" | 25 # connection is opened. This will not work if there is any "presql" |
26 # configured (SQL run within the [sqlite3] wrapper in tester.tcl). | 26 # configured (SQL run within the [sqlite3] wrapper in tester.tcl). |
27 if {[info exists ::G(perm:presql)]} { | 27 if {[info exists ::G(perm:presql)]} { |
28 finish_test | 28 finish_test |
29 return | 29 return |
30 } | 30 } |
31 | 31 |
| 32 test_set_config_pagecache 0 0 |
| 33 |
32 catch {db close} | 34 catch {db close} |
33 sqlite3_shutdown | 35 sqlite3_shutdown |
34 sqlite3_config_pagecache 0 0 | |
35 sqlite3_config_scratch 0 0 | 36 sqlite3_config_scratch 0 0 |
36 sqlite3_initialize | 37 sqlite3_initialize |
37 autoinstall_test_functions | 38 autoinstall_test_functions |
38 sqlite3 db test.db | 39 sqlite3 db test.db |
39 | 40 |
40 # Make sure sqlite3_db_config() and sqlite3_db_status are working. | 41 # Make sure sqlite3_db_config() and sqlite3_db_status are working. |
41 # | 42 # |
42 do_test lookaside-1.1 { | 43 do_test lookaside-1.1 { |
43 catch {sqlite3_config_error db} | 44 catch {sqlite3_config_error db} |
44 } {0} | 45 } {0} |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 # reported as an error. | 123 # reported as an error. |
123 # | 124 # |
124 do_test lookaside-4.1 { | 125 do_test lookaside-4.1 { |
125 db close | 126 db close |
126 sqlite3_shutdown | 127 sqlite3_shutdown |
127 catch sqlite3_config_error | 128 catch sqlite3_config_error |
128 } {0} | 129 } {0} |
129 sqlite3_initialize | 130 sqlite3_initialize |
130 autoinstall_test_functions | 131 autoinstall_test_functions |
131 | 132 |
| 133 test_restore_config_pagecache |
132 finish_test | 134 finish_test |
OLD | NEW |