aboutsummaryrefslogtreecommitdiff
path: root/src/test_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r--src/test_malloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c
index 900a8ac40..b937cea7c 100644
--- a/src/test_malloc.c
+++ b/src/test_malloc.c
@@ -696,6 +696,12 @@ static int test_memdebug_pending(
return TCL_OK;
}
+/*
+** The following global variable keeps track of the number of tests
+** that have run. This variable is only useful when running in the
+** debugger.
+*/
+static int sqlite3_memdebug_title_count = 0;
/*
** Usage: sqlite3_memdebug_settitle TITLE
@@ -713,6 +719,7 @@ static int test_memdebug_settitle(
int objc,
Tcl_Obj *CONST objv[]
){
+ sqlite3_memdebug_title_count++;
if( objc!=2 ){
Tcl_WrongNumArgs(interp, 1, objv, "TITLE");
return TCL_ERROR;