1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370)

FossilOrigin-Name: ed2a2e0102c4fd2221096028d55a6f1d54f97274
This commit is contained in:
danielk1977
2007-09-03 07:31:09 +00:00
parent e9bb50ae50
commit 369ff42e77
7 changed files with 42 additions and 37 deletions

View File

@@ -13,7 +13,7 @@
** This file contains code used to implement test interfaces to the
** memory allocation subsystem.
**
** $Id: test_malloc.c,v 1.7 2007/08/30 15:46:07 danielk1977 Exp $
** $Id: test_malloc.c,v 1.8 2007/09/03 07:31:10 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -271,7 +271,6 @@ static int test_memdebug_fail(
int ii;
int iFail;
int iRepeat = -1;
int iBenignCnt;
Tcl_Obj *pBenignCnt = 0;
int nFail = 0;
@@ -314,6 +313,7 @@ static int test_memdebug_fail(
#ifdef SQLITE_MEMDEBUG
{
extern int sqlite3_memdebug_fail(int,int,int*);
int iBenignCnt;
nFail = sqlite3_memdebug_fail(iFail, iRepeat, &iBenignCnt);
if( pBenignCnt ){
Tcl_ObjSetVar2(interp, pBenignCnt, 0, Tcl_NewIntObj(iBenignCnt), 0);