diff options
author | dan <dan@noemail.net> | 2014-05-05 09:08:54 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2014-05-05 09:08:54 +0000 |
commit | d94d4ee7bd462e9a00e47207cac8a0119e7bffa8 (patch) | |
tree | 0295aa3d6a39c8912d7f40b61bfaffc2c304141b /src/threads.c | |
parent | f7f425d6006c5181cf5e3771d35766c5de456271 (diff) | |
download | sqlite-d94d4ee7bd462e9a00e47207cac8a0119e7bffa8.tar.gz sqlite-d94d4ee7bd462e9a00e47207cac8a0119e7bffa8.zip |
Add tests so that the "coverage-sorter" test permutation covers all branches in vdbesort.c. Fix a few minor problems in the same file.
FossilOrigin-Name: bde28b702dabd02269e333535cc41481351c5efc
Diffstat (limited to 'src/threads.c')
-rw-r--r-- | src/threads.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/threads.c b/src/threads.c index 64975801b..6b59ce90d 100644 --- a/src/threads.c +++ b/src/threads.c @@ -208,6 +208,7 @@ int sqlite3ThreadCreate( /* Get the results of the thread */ int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){ + assert( ppOut!=0 ); if( p==0 ) return SQLITE_NOMEM; if( p->xTask ){ @@ -216,6 +217,15 @@ int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){ *ppOut = p->pResult; } sqlite3_free(p); + +#if defined(SQLITE_TEST) + { + void *pTstAlloc = sqlite3Malloc(10); + if (!pTstAlloc) return SQLITE_NOMEM; + sqlite3_free(pTstAlloc); + } +#endif + return SQLITE_OK; } |