aboutsummaryrefslogtreecommitdiff
path: root/src/test6.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test6.c')
-rw-r--r--src/test6.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test6.c b/src/test6.c
index 95b5190b6..608a140ee 100644
--- a/src/test6.c
+++ b/src/test6.c
@@ -19,6 +19,8 @@
#include "os.h"
#include "tcl.h"
+#ifndef SQLITE_OMIT_DISKIO /* This file is a no-op if disk I/O is disabled */
+
/*
** crashFile is a subclass of OsFile that is taylored for the
** crash test module.
@@ -534,11 +536,15 @@ static int crashParamsObjCmd(
return TCL_OK;
}
+#endif /* SQLITE_OMIT_DISKIO */
+
/*
** This procedure registers the TCL procedures defined in this file.
*/
int Sqlitetest6_Init(Tcl_Interp *interp){
+#ifndef SQLITE_OMIT_DISKIO
Tcl_CreateObjCommand(interp, "sqlite3_crashparams", crashParamsObjCmd, 0, 0);
+#endif
return TCL_OK;
}