diff options
author | drh <drh@noemail.net> | 2008-07-08 02:12:37 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-08 02:12:37 +0000 |
commit | c8d75674d6dff8ade0e423a6a56888394bb6fddb (patch) | |
tree | 07bfebd30752692d0e44b1cd6533dc33adec921f /src/test_autoext.c | |
parent | fb45d8c563db372c9a9cf67c5a58d2e3bf67152a (diff) | |
download | sqlite-c8d75674d6dff8ade0e423a6a56888394bb6fddb.tar.gz sqlite-c8d75674d6dff8ade0e423a6a56888394bb6fddb.zip |
Add tests to verify correct behavior when mutex initialization fails. (CVS 5359)
FossilOrigin-Name: 65875005ac8bc7988d7d7d8e8b999857449568fd
Diffstat (limited to 'src/test_autoext.c')
-rw-r--r-- | src/test_autoext.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test_autoext.c b/src/test_autoext.c index 6c5b98370..11f541360 100644 --- a/src/test_autoext.c +++ b/src/test_autoext.c @@ -11,7 +11,7 @@ ************************************************************************* ** Test extension for testing the sqlite3_auto_extension() function. ** -** $Id: test_autoext.c,v 1.4 2008/03/19 23:52:35 mlcreech Exp $ +** $Id: test_autoext.c,v 1.5 2008/07/08 02:12:37 drh Exp $ */ #include "tcl.h" #include "sqlite3ext.h" @@ -95,7 +95,8 @@ static int autoExtSqrObjCmd( int objc, Tcl_Obj *CONST objv[] ){ - sqlite3_auto_extension((void*)sqr_init); + int rc = sqlite3_auto_extension((void*)sqr_init); + Tcl_SetObjResult(interp, Tcl_NewIntObj(rc)); return SQLITE_OK; } @@ -110,7 +111,8 @@ static int autoExtCubeObjCmd( int objc, Tcl_Obj *CONST objv[] ){ - sqlite3_auto_extension((void*)cube_init); + int rc = sqlite3_auto_extension((void*)cube_init); + Tcl_SetObjResult(interp, Tcl_NewIntObj(rc)); return SQLITE_OK; } @@ -125,7 +127,8 @@ static int autoExtBrokenObjCmd( int objc, Tcl_Obj *CONST objv[] ){ - sqlite3_auto_extension((void*)broken_init); + int rc = sqlite3_auto_extension((void*)broken_init); + Tcl_SetObjResult(interp, Tcl_NewIntObj(rc)); return SQLITE_OK; } |