Disable the snapshot test scripts if not compiled with SQLITE_ENABLE_SNAPSHOT.

FossilOrigin-Name: 5fd008f0433833e4341d526dcc2387570ffe1fea
This commit is contained in:
drh
2015-12-11 03:20:39 +00:00
parent c49e960d41
commit 68d28ea4f0
5 changed files with 17 additions and 11 deletions
+6
View File
@@ -143,6 +143,12 @@ static void set_options(Tcl_Interp *interp){
Tcl_SetVar2(interp, "sqlite_options", "mem5", "0", TCL_GLOBAL_ONLY);
#endif
#ifdef SQLITE_ENABLE_SNAPSHOT
Tcl_SetVar2(interp, "sqlite_options", "snapshot", "1", TCL_GLOBAL_ONLY);
#else
Tcl_SetVar2(interp, "sqlite_options", "snapshot", "0", TCL_GLOBAL_ONLY);
#endif
#ifdef SQLITE_MUTEX_OMIT
Tcl_SetVar2(interp, "sqlite_options", "mutex", "0", TCL_GLOBAL_ONLY);
#else