Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/src/test/shared2.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/shared.test ('k') | third_party/sqlite/src/test/shared3.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/shared2.test
diff --git a/third_party/sqlite/src/test/shared2.test b/third_party/sqlite/src/test/shared2.test
index 37f9516f68e150f59277eec779b9bf4df009522b..d2a0d1b0f0490f5ffb64e77c0890ccf403045b6f 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
« no previous file with comments | « third_party/sqlite/src/test/shared.test ('k') | third_party/sqlite/src/test/shared3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698