diff options
author | dan <dan@noemail.net> | 2010-09-01 18:00:09 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-09-01 18:00:09 +0000 |
commit | 06bfd36a2d436bf11fe91d83373ba6630615218f (patch) | |
tree | 6a219e14fcdbc60758904b2fa9f5f235e943548b /src | |
parent | 9fc7702c4fbdfc2f29df49a78bd98da7a9e499dc (diff) | |
download | sqlite-06bfd36a2d436bf11fe91d83373ba6630615218f.tar.gz sqlite-06bfd36a2d436bf11fe91d83373ba6630615218f.zip |
Add tests to quota.test.
FossilOrigin-Name: ec9af6ebd49505c4e5f90fb6450c71946cdc7291
Diffstat (limited to 'src')
-rw-r--r-- | src/test_quota.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test_quota.c b/src/test_quota.c index 4d576f160..352f289d3 100644 --- a/src/test_quota.c +++ b/src/test_quota.c @@ -832,6 +832,7 @@ static int test_quota_set( TclQuotaCallback *p; /* Callback object */ int nScript; /* Length of callback script */ void (*xDestroy)(void*); /* Optional destructor for pArg */ + void (*xCallback)(const char *, sqlite3_int64 *, sqlite3_int64, void *); /* Process arguments */ if( objc!=4 ){ @@ -855,13 +856,15 @@ static int test_quota_set( Tcl_IncrRefCount(pScript); p->pScript = pScript; xDestroy = tclCallbackDestructor; + xCallback = tclQuotaCallback; }else{ p = 0; xDestroy = 0; + xCallback = 0; } /* Invoke sqlite3_quota_set() */ - rc = sqlite3_quota_set(zPattern, iLimit, tclQuotaCallback, (void*)p,xDestroy); + rc = sqlite3_quota_set(zPattern, iLimit, xCallback, (void*)p, xDestroy); Tcl_SetResult(interp, (char *)sqlite3TestErrorName(rc), TCL_STATIC); return TCL_OK; |