diff options
author | drh <drh@noemail.net> | 2007-08-12 20:07:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-08-12 20:07:58 +0000 |
commit | 3aefabaf94e86c11d30ced084146ece63893a12c (patch) | |
tree | ba8ee686ebb431900bc81fe955b39f2b6503498f /test/exclusive2.test | |
parent | 8940f4ee566959b968e6fabf3e0e18500a38b8b6 (diff) | |
download | sqlite-3aefabaf94e86c11d30ced084146ece63893a12c.tar.gz sqlite-3aefabaf94e86c11d30ced084146ece63893a12c.zip |
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31
Diffstat (limited to 'test/exclusive2.test')
-rw-r--r-- | test/exclusive2.test | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/exclusive2.test b/test/exclusive2.test index f91496f02..d0eeb19b3 100644 --- a/test/exclusive2.test +++ b/test/exclusive2.test @@ -10,7 +10,7 @@ #*********************************************************************** # This file implements regression tests for SQLite library. # -# $Id: exclusive2.test,v 1.7 2007/07/20 20:25:38 aswift Exp $ +# $Id: exclusive2.test,v 1.8 2007/08/12 20:07:59 drh Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl @@ -20,6 +20,11 @@ ifcapable {!pager_pragmas} { return } +# This module does not work right if the cache spills at unexpected +# moments. So disable the soft-heap-limit. +# +sqlite3_soft_heap_limit 0 + proc pagerChangeCounter {filename {new ""}} { set fd [open $filename RDWR] fconfigure $fd -translation binary -encoding binary @@ -165,7 +170,8 @@ do_test exclusive2-1.11 { # # As above, this test is only applicable if the pager cache is # large enough to hold the entire database. With 1024 byte pages, -# this means 19 pages. +# this means 19 pages. We also need to disable the soft-heap-limit +# to prevent memory-induced cache spills. # do_test exclusive2-2.1 { execsql {PRAGMA locking_mode = exclusive;} @@ -286,5 +292,6 @@ do_test exclusive2-3.6 { } readPagerChangeCounter test.db } {5} +sqlite3_soft_heap_limit $soft_limit finish_test |