diff options
Diffstat (limited to 'third_party/sqlite/src/test/shared2.test')
-rw-r--r-- | third_party/sqlite/src/test/shared2.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/sqlite/src/test/shared2.test b/third_party/sqlite/src/test/shared2.test index 37f9516..d2a0d1b 100644 --- a/third_party/sqlite/src/test/shared2.test +++ b/third_party/sqlite/src/test/shared2.test @@ -13,6 +13,8 @@ set testdir [file dirname $argv0] source $testdir/tester.tcl +source $testdir/lock_common.tcl +source $testdir/malloc_common.tcl db close ifcapable !shared_cache { @@ -166,5 +168,14 @@ do_test shared2-5.1 { db close db2 close +# The following test verifies that shared-cache mode does not automatically +# turn on exclusive-locking mode for some reason. +do_multiclient_test {tn} { + sql1 { CREATE TABLE t1(a, b) } + sql2 { CREATE TABLE t2(a, b) } + do_test shared2-6.$tn.1 { sql1 { SELECT * FROM t2 } } {} + do_test shared2-6.$tn.2 { sql2 { SELECT * FROM t1 } } {} +} + sqlite3_enable_shared_cache $::enable_shared_cache finish_test |