aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2005-06-07 07:58:48 +0000
committerdanielk1977 <danielk1977@noemail.net>2005-06-07 07:58:48 +0000
commitcbe21be330c9c1d23bab10f9b7e70a72075bac14 (patch)
treea5c908b6af7a2b51ea054578f71606445e179431 /src
parentaf6df11f8a2451f3e30efdf9dbc5b2a44b0d5afe (diff)
downloadsqlite-cbe21be330c9c1d23bab10f9b7e70a72075bac14.tar.gz
sqlite-cbe21be330c9c1d23bab10f9b7e70a72075bac14.zip
Add "#ifndef OMIT_DISKIO" condition around sqlite3_opentemp_count variable
in test interface code. (CVS 2501) FossilOrigin-Name: f2ce662e81cea4983f335606ed18a74b97d35609
Diffstat (limited to 'src')
-rw-r--r--src/test1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test1.c b/src/test1.c
index 695a34e87..2f6a4b599 100644
--- a/src/test1.c
+++ b/src/test1.c
@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
-** $Id: test1.c,v 1.142 2005/06/07 02:12:30 drh Exp $
+** $Id: test1.c,v 1.143 2005/06/07 07:58:49 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -3075,7 +3075,6 @@ int Sqlitetest1_Init(Tcl_Interp *interp){
extern int sqlite3_os_trace;
extern int sqlite3_sync_count, sqlite3_fullsync_count;
extern int sqlite3_opentemp_count;
-
for(i=0; i<sizeof(aCmd)/sizeof(aCmd[0]); i++){
Tcl_CreateCommand(interp, aCmd[i].zName, aCmd[i].xProc, 0, 0);
@@ -3096,8 +3095,10 @@ int Sqlitetest1_Init(Tcl_Interp *interp){
(char*)&sqlite3_current_time, TCL_LINK_INT);
Tcl_LinkVar(interp, "sqlite_os_trace",
(char*)&sqlite3_os_trace, TCL_LINK_INT);
+#ifndef SQLITE_OMIT_DISKIO
Tcl_LinkVar(interp, "sqlite_opentemp_count",
(char*)&sqlite3_opentemp_count, TCL_LINK_INT);
+#endif
Tcl_LinkVar(interp, "sqlite_static_bind_value",
(char*)&sqlite_static_bind_value, TCL_LINK_STRING);
Tcl_LinkVar(interp, "sqlite_temp_directory",