Modify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_methods scheme. At this point it only "mostly" works. (CVS 5297)

FossilOrigin-Name: 3febef548fb1c314336fe4bc359d72a4fe84e84e
This commit is contained in:
danielk1977
2008-06-24 19:02:55 +00:00
parent 6fb6444c3e
commit 57e5ea9327
7 changed files with 335 additions and 264 deletions
+18 -1
View File
@@ -9,7 +9,7 @@
#
#***********************************************************************
#
# $Id: permutations.test,v 1.3 2008/06/23 15:55:52 danielk1977 Exp $
# $Id: permutations.test,v 1.4 2008/06/24 19:02:55 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -329,6 +329,23 @@ run_tests "autovacuum_ioerr" -description {
pragma auto_vacuum = 1
} -include ioerr.test
run_tests "mempool" -description {
Run tests using the allocator in mem3.c.
} -initialize {
catch {db close}
sqlite3_reset_auto_extension
sqlite3_shutdown
sqlite3_config_mempool 1000000
sqlite3_initialize
autoinstall_test_functions
} -shutdown {
catch {db close}
sqlite3_reset_auto_extension
sqlite3_shutdown
sqlite3_config_mempool 0
sqlite3_initialize
}
# run_tests "crash_safe_append" -description {
# Run crash.test with persistent journals on a SAFE_APPEND file-system.
# } -initialize {