mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-23 11:22:09 +03:00
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
#
|
||||
#***********************************************************************
|
||||
#
|
||||
# $Id: incrblob.test,v 1.12 2007/06/27 00:36:14 drh Exp $
|
||||
# $Id: incrblob.test,v 1.13 2007/08/12 20:07:59 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -105,6 +105,8 @@ proc nWrite {db} {
|
||||
return $stats(write)
|
||||
}
|
||||
|
||||
sqlite3_soft_heap_limit 0
|
||||
|
||||
foreach AutoVacuumMode [list 0 1] {
|
||||
|
||||
if {$AutoVacuumMode>0} {
|
||||
@ -202,6 +204,7 @@ foreach AutoVacuumMode [list 0 1] {
|
||||
nRead db
|
||||
} [expr $AutoVacuumMode ? 4 : 30]
|
||||
}
|
||||
sqlite3_soft_heap_limit $soft_limit
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# incrblob-3.*:
|
||||
@ -363,6 +366,7 @@ unset ::text
|
||||
# after the transaction is commited and the blob channel
|
||||
# closed.
|
||||
#
|
||||
sqlite3_soft_heap_limit 0
|
||||
do_test incrblob-6.1 {
|
||||
sqlite3 db2 test.db
|
||||
execsql {
|
||||
@ -438,6 +442,7 @@ do_test incrblob-6.14 {
|
||||
}
|
||||
} {a different invocation}
|
||||
db2 close
|
||||
sqlite3_soft_heap_limit $soft_limit
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# The following tests verify the behaviour of the incremental IO
|
||||
|
Reference in New Issue
Block a user