From: danielk1977 Date: Fri, 20 Jun 2008 17:51:16 +0000 (+0000) Subject: Add a test to check that opening a second connection to a shared cache does not reset... X-Git-Tag: version-3.6.10~921 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9324c8f2808e3050463e288e40627161ac9105cb;p=thirdparty%2Fsqlite.git Add a test to check that opening a second connection to a shared cache does not reset the cache size to its default value. (CVS 5256) FossilOrigin-Name: 3546e245aaf5d75b9f52ffb3268da9bc26946396 --- diff --git a/manifest b/manifest index 89939ec88b..2e9b3ff62e 100644 --- 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 diff --git a/manifest.uuid b/manifest.uuid index 56acee8b61..6457ad3bd7 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -6b9d92fc3f265ef75c9182e537812490bb818950 \ No newline at end of file +3546e245aaf5d75b9f52ffb3268da9bc26946396 \ No newline at end of file diff --git a/test/shared3.test b/test/shared3.test index 4cef49c212..fe50d22b54 100644 --- a/test/shared3.test +++ b/test/shared3.test @@ -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