diff options
author | dan <dan@noemail.net> | 2014-09-06 16:52:18 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2014-09-06 16:52:18 +0000 |
commit | 3fdf46a16e592de482a81721ff32e85b6d50006a (patch) | |
tree | 2f86622762529bf3123bf0519e7df7343e5be7b6 /src/test_malloc.c | |
parent | 2ee53412888324b00964a8766f4f78ccc80218a9 (diff) | |
parent | 60ec914c74ec79e4b73c004d1c21330be7916c99 (diff) | |
download | sqlite-3fdf46a16e592de482a81721ff32e85b6d50006a.tar.gz sqlite-3fdf46a16e592de482a81721ff32e85b6d50006a.zip |
Merge latest trunk changes with this branch.
FossilOrigin-Name: 9dca7ce55797b3eb617859f6189c1a2ec6f66566
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r-- | src/test_malloc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c index 900a8ac40..bd0a3d1ff 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; @@ -880,7 +887,7 @@ static int test_memdebug_log( ** ** Set the scratch memory buffer using SQLITE_CONFIG_SCRATCH. ** The buffer is static and is of limited size. N might be -** adjusted downward as needed to accomodate the requested size. +** adjusted downward as needed to accommodate the requested size. ** The revised value of N is returned. ** ** A negative SIZE causes the buffer pointer to be NULL. @@ -920,7 +927,7 @@ static int test_config_scratch( ** ** Set the page-cache memory buffer using SQLITE_CONFIG_PAGECACHE. ** The buffer is static and is of limited size. N might be -** adjusted downward as needed to accomodate the requested size. +** adjusted downward as needed to accommodate the requested size. ** The revised value of N is returned. ** ** A negative SIZE causes the buffer pointer to be NULL. |