]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add a test to check that opening a second connection to a shared cache does not reset...
authordanielk1977 <danielk1977@noemail.net>
Fri, 20 Jun 2008 17:51:16 +0000 (17:51 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Fri, 20 Jun 2008 17:51:16 +0000 (17:51 +0000)
FossilOrigin-Name: 3546e245aaf5d75b9f52ffb3268da9bc26946396

manifest
manifest.uuid
test/shared3.test

index 89939ec88bfaffed18cc3155d7b9f0788d135854..2e9b3ff62e0cdef35fb8874000db23c982fe2923 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Change\sthe\sSRT_Subroutine\smode\sinto\sSRT_Coroutine.\s\sUse\sco-routines\sin\nthe\sINSERT\sprocessing\slogic.\s(CVS\s5255)
-D 2008-06-20T15:24:02
+C Add\sa\stest\sto\scheck\sthat\sopening\sa\ssecond\sconnection\sto\sa\sshared\scache\sdoes\snot\sreset\sthe\scache\ssize\sto\sits\sdefault\svalue.\s(CVS\s5256)
+D 2008-06-20T17:51:17
 F Makefile.arm-wince-mingw32ce-gcc ac5f7b2cef0cd850d6f755ba6ee4ab961b1fadf7
 F Makefile.in ff6f90048555a0088f6a4b7406bed5e55a7c4eff
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -456,7 +456,7 @@ F test/select8.test 391de11bdd52339c30580dabbbbe97e3e9a3c79d
 F test/server1.test f5b790d4c0498179151ca8a7715a65a7802c859c
 F test/shared.test c6769531e0cb751d46a9838c0532d3786606c0f6
 F test/shared2.test 0ee9de8964d70e451936a48c41cb161d9134ccf4
-F test/shared3.test 01e3e124dbb3859788aabc7cfb82f7ea04421749
+F test/shared3.test 546b69002d23a704acbe8b5ed24bc5930b6b0bfe
 F test/shared_err.test 10157148055f1b96373bcc59ecd4e84a83e22a81
 F test/shortread1.test bb591ef20f0fd9ed26d0d12e80eee6d7ac8897a3
 F test/sidedelete.test 736ac1da08b3b1aa62df97fef2fcdb1b660111b9
@@ -600,7 +600,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 56c8af1452dfdc8da858a2411bd6f3663a8a9326
-R 6f87c80d4f9e9e0ffaab864f69d1e048
-U drh
-Z d407ea393f3d0c3bac61db977c722528
+P 6b9d92fc3f265ef75c9182e537812490bb818950
+R 71da1fcba8c73c8171b73b407d6eada6
+U danielk1977
+Z d3489b3e80ddc7822f5885b135f3fa25
index 56acee8b61ebdc34f0549febb4dbfda435cfc893..6457ad3bd7e2a048af6e88f42921326545b23e2b 100644 (file)
@@ -1 +1 @@
-6b9d92fc3f265ef75c9182e537812490bb818950
\ No newline at end of file
+3546e245aaf5d75b9f52ffb3268da9bc26946396
\ No newline at end of file
index 4cef49c212919709121a962aae94e0b828540c62..fe50d22b54ee89d8a3ccc472d77f4b9c6373a4a7 100644 (file)
@@ -9,7 +9,7 @@
 #
 #***********************************************************************
 #
-# $Id: shared3.test,v 1.1 2006/05/24 12:43:28 drh Exp $
+# $Id: shared3.test,v 1.2 2008/06/20 17:51:17 danielk1977 Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -43,5 +43,28 @@ do_test shared3-1.2 {
 db1 close
 db2 close
 
+do_test shared3-2.1 {
+  sqlite3 db1 test.db
+  execsql {
+    PRAGMA main.cache_size = 64;
+  } db1
+} {}
+do_test shared3-2.2 {
+  execsql { PRAGMA main.cache_size } db1
+} {64}
+do_test shared3-2.3 {
+  sqlite3 db2 test.db
+  execsql { PRAGMA main.cache_size } db1
+} {64}
+do_test shared3-2.4 {
+  execsql { PRAGMA main.cache_size } db2
+} {64}
+do_test shared3-2.5 {
+  execsql { PRAGMA main.cache_size } db1
+} {64}
+
+db1 close
+db2 close
+
 sqlite3_enable_shared_cache $::enable_shared_cache
 finish_test