aboutsummaryrefslogtreecommitdiff
path: root/test/permutations.test
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-06-27 13:27:03 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-06-27 13:27:03 +0000
commit5099be5e85c9ea74da082bc8ba5b49ed634e6fb0 (patch)
tree72c5e4cf54b92463a9e1aeee881499aeb4567056 /test/permutations.test
parent6fccc35a9187673f97fed9ddedd06363e4c9b55e (diff)
downloadsqlite-5099be5e85c9ea74da082bc8ba5b49ed634e6fb0.tar.gz
sqlite-5099be5e85c9ea74da082bc8ba5b49ed634e6fb0.zip
Change mem5.c so that the minimum allocation size is runtime configurable. (CVS 5320)
FossilOrigin-Name: 4f95f4cdf77e134fab42148e10198c7b008d4ae6
Diffstat (limited to 'test/permutations.test')
-rw-r--r--test/permutations.test24
1 files changed, 22 insertions, 2 deletions
diff --git a/test/permutations.test b/test/permutations.test
index 8c2f6f22b..81cff4d5c 100644
--- a/test/permutations.test
+++ b/test/permutations.test
@@ -9,7 +9,7 @@
#
#***********************************************************************
#
-# $Id: permutations.test,v 1.7 2008/06/25 14:57:54 danielk1977 Exp $
+# $Id: permutations.test,v 1.8 2008/06/27 13:27:04 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -367,7 +367,27 @@ ifcapable mem5 {
catch {db close}
sqlite3_reset_auto_extension
sqlite3_shutdown
- sqlite3_config_memsys5 1000000
+ sqlite3_config_heap 1000000 64
+ install_malloc_faultsim 1
+ sqlite3_initialize
+ autoinstall_test_functions
+ } -shutdown {
+ catch {db close}
+ sqlite3_reset_auto_extension
+ sqlite3_shutdown
+ sqlite3_config_memsys5 0
+ install_malloc_faultsim 1
+ sqlite3_initialize
+ }
+
+ run_tests "memsys5-2" -description {
+ Run tests using the allocator in mem5.c in a different configuration.
+ } -include { select1.test
+ } -initialize {
+ catch {db close}
+ sqlite3_reset_auto_extension
+ sqlite3_shutdown
+ sqlite3_config_heap 250000 16
install_malloc_faultsim 1
sqlite3_initialize
autoinstall_test_functions