1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Do not run multi-threaded Tcl tests if the library was built with SQLITE_MUTEX_NOOP defined.

FossilOrigin-Name: e4e99606fdf1f1cecf914dc865b066bf07793d1f
This commit is contained in:
dan
2011-04-07 10:09:00 +00:00
parent b73da5bd1c
commit 7329ed9b38
4 changed files with 17 additions and 8 deletions

View File

@@ -91,6 +91,12 @@ static void set_options(Tcl_Interp *interp){
Tcl_SetVar2(interp, "sqlite_options", "mutex", "1", TCL_GLOBAL_ONLY);
#endif
#ifdef SQLITE_MUTEX_NOOP
Tcl_SetVar2(interp, "sqlite_options", "mutex_noop", "1", TCL_GLOBAL_ONLY);
#else
Tcl_SetVar2(interp, "sqlite_options", "mutex_noop", "0", TCL_GLOBAL_ONLY);
#endif
#ifdef SQLITE_OMIT_ALTERTABLE
Tcl_SetVar2(interp, "sqlite_options", "altertable", "0", TCL_GLOBAL_ONLY);
#else