diff options
author | drh <drh@noemail.net> | 2008-02-18 22:24:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-02-18 22:24:57 +0000 |
commit | eee4c8ca112eeb614444bf6f649552dd89603916 (patch) | |
tree | 2867e73d08e315397ac28484b9ab475fc8da3e35 /src/test_malloc.c | |
parent | f5e7bb513c0c661a15bf83fef4c459c52f8edcac (diff) | |
download | sqlite-eee4c8ca112eeb614444bf6f649552dd89603916.tar.gz sqlite-eee4c8ca112eeb614444bf6f649552dd89603916.zip |
Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c.
Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795)
FossilOrigin-Name: 63da5d97542e4f54c33329833477c8d96ce05dd0
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r-- | src/test_malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c index ef7512e64..642e5c7d0 100644 --- a/src/test_malloc.c +++ b/src/test_malloc.c @@ -13,7 +13,7 @@ ** This file contains code used to implement test interfaces to the ** memory allocation subsystem. ** -** $Id: test_malloc.c,v 1.13 2008/02/16 16:21:46 drh Exp $ +** $Id: test_malloc.c,v 1.14 2008/02/18 22:24:58 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -468,7 +468,7 @@ static int test_memdebug_pending( return TCL_ERROR; } -#ifdef SQLITE_MEMDEBUG +#if defined(SQLITE_MEMDEBUG) || defined(SQLITE_POW2_MEMORY_SIZE) { int nPending = sqlite3_test_control(SQLITE_TESTCTRL_FAULT_PENDING, SQLITE_FAULTINJECTOR_MALLOC); |