3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
12 # This file contains tests of the mem5 allocation subsystem.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
23 # The tests in this file configure the lookaside allocator after a
24 # connection is opened. This will not work if there is any "presql"
25 # configured (SQL run within the [sqlite3] wrapper in tester.tcl).
26 if {[info exists ::G(perm:presql)]} {
34 sqlite3_config_heap 25000000 0
35 sqlite3_config_lookaside 0 0
39 # try with min request size = 2^30
43 sqlite3_config_heap 1 1073741824
44 sqlite3_config_lookaside 0 0
48 # try with min request size = 2^30+1
49 # previously this was causing the memsys5Log() func to infinitely loop.
53 sqlite3_config_heap 1 1073741825
54 sqlite3_config_lookaside 0 0
61 sqlite3_config_heap 0 0
62 sqlite3_config_lookaside 0 0