diff options
author | drh <drh@noemail.net> | 2008-07-17 17:34:19 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-17 17:34:19 +0000 |
commit | b912f3e9e40ab5bae664ec69a4681b6c538787eb (patch) | |
tree | 307f4844c568df09df90be428001dfd5954e0c82 /src/test_mutex.c | |
parent | 71b53ca460a5fa2b2aa688d156e8de81bcee0014 (diff) | |
download | sqlite-b912f3e9e40ab5bae664ec69a4681b6c538787eb.tar.gz sqlite-b912f3e9e40ab5bae664ec69a4681b6c538787eb.zip |
Fix the test harness so that it does not try to link against
sqlite3_mutex_alloc() if compiled with -DSQLITE_THREADSAFE=0. (CVS 5430)
FossilOrigin-Name: 26a203d894edd0091ac60862956e42d22167011e
Diffstat (limited to 'src/test_mutex.c')
-rw-r--r-- | src/test_mutex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test_mutex.c b/src/test_mutex.c index 38590bd57..7523ecb0b 100644 --- a/src/test_mutex.c +++ b/src/test_mutex.c @@ -10,7 +10,7 @@ ** ************************************************************************* ** -** $Id: test_mutex.c,v 1.9 2008/07/10 20:41:50 drh Exp $ +** $Id: test_mutex.c,v 1.10 2008/07/17 17:34:20 drh Exp $ */ #include "tcl.h" @@ -300,11 +300,13 @@ static int test_alloc_mutex( int objc, Tcl_Obj *CONST objv[] ){ +#if SQLITE_THREADSAFE sqlite3_mutex *p = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); char zBuf[100]; sqlite3_mutex_free(p); sqlite3_snprintf(sizeof(zBuf), zBuf, "%p", p); Tcl_AppendResult(interp, zBuf, (char*)0); +#endif return TCL_OK; } |