OLD | NEW |
1 # 2008 July 14 | 1 # 2008 July 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 the btree mutex protocol for shared cache mode. | 12 # Test the btree mutex protocol for shared cache mode. |
13 # | 13 # |
14 # $Id: shared4.test,v 1.2 2008/08/04 03:51:24 danielk1977 Exp $ | 14 # $Id: shared4.test,v 1.2 2008/08/04 03:51:24 danielk1977 Exp $ |
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 db close | 18 db close |
19 puts hello | |
20 | 19 |
21 # This script is only valid if we are running shared-cache mode in a | 20 # This script is only valid if we are running shared-cache mode in a |
22 # threadsafe-capable database engine. | 21 # threadsafe-capable database engine. |
23 # | 22 # |
24 ifcapable !shared_cache||!compound { | 23 ifcapable !shared_cache||!compound { |
25 finish_test | 24 finish_test |
26 return | 25 return |
27 } | 26 } |
28 set ::enable_shared_cache [sqlite3_enable_shared_cache 1] | 27 set ::enable_shared_cache [sqlite3_enable_shared_cache 1] |
29 | 28 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } {1111111 3333333 4444444 2222222} | 227 } {1111111 3333333 4444444 2222222} |
229 | 228 |
230 | 229 |
231 db1 close | 230 db1 close |
232 db2 close | 231 db2 close |
233 db3 close | 232 db3 close |
234 db4 close | 233 db4 close |
235 | 234 |
236 sqlite3_enable_shared_cache $::enable_shared_cache | 235 sqlite3_enable_shared_cache $::enable_shared_cache |
237 finish_test | 236 finish_test |
OLD | NEW |