| OLD | NEW |
| 1 # 2008 June 17 | 1 # 2008 June 17 |
| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } {0 0} | 90 } {0 0} |
| 91 | 91 |
| 92 #------------------------------------------------------------------------- | 92 #------------------------------------------------------------------------- |
| 93 # Tests mutex1-2.* test the three thread-safety related modes that | 93 # Tests mutex1-2.* test the three thread-safety related modes that |
| 94 # can be selected using sqlite3_config: | 94 # can be selected using sqlite3_config: |
| 95 # | 95 # |
| 96 # * Serialized mode, | 96 # * Serialized mode, |
| 97 # * Multi-threaded mode, | 97 # * Multi-threaded mode, |
| 98 # * Single-threaded mode. | 98 # * Single-threaded mode. |
| 99 # | 99 # |
| 100 ifcapable threadsafe&&shared_cache { | 100 ifcapable threadsafe1&&shared_cache { |
| 101 set enable_shared_cache [sqlite3_enable_shared_cache 1] | 101 set enable_shared_cache [sqlite3_enable_shared_cache 1] |
| 102 foreach {mode mutexes} { | 102 foreach {mode mutexes} { |
| 103 singlethread {} | 103 singlethread {} |
| 104 multithread { | 104 multithread { |
| 105 fast static_app1 static_app2 static_app3 | 105 fast static_app1 static_app2 static_app3 |
| 106 static_lru static_master static_mem static_open | 106 static_lru static_master static_mem static_open |
| 107 static_prng static_pmem static_vfs1 static_vfs2 | 107 static_prng static_pmem static_vfs1 static_vfs2 |
| 108 static_vfs3 | 108 static_vfs3 |
| 109 } | 109 } |
| 110 serialized { | 110 serialized { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 do_test mutex1-X { | 206 do_test mutex1-X { |
| 207 catch {db close} | 207 catch {db close} |
| 208 sqlite3_shutdown | 208 sqlite3_shutdown |
| 209 clear_mutex_counters | 209 clear_mutex_counters |
| 210 install_mutex_counters 0 | 210 install_mutex_counters 0 |
| 211 sqlite3_initialize | 211 sqlite3_initialize |
| 212 } {SQLITE_OK} | 212 } {SQLITE_OK} |
| 213 | 213 |
| 214 autoinstall_test_functions | 214 autoinstall_test_functions |
| 215 finish_test | 215 finish_test |
| OLD | NEW |