Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix to test code to build when ENABLE_IOTRACE is not defined. (CVS 5079) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8fa2bda4c594119cbbc489b9879c52b1 |
User & Date: | danielk1977 2008-05-05 11:33:48.000 |
Context
2008-05-05
| ||
12:09 | Avoid leaking page references when database corruption is encountered. (CVS 5080) (check-in: 270d47e8d0 user: danielk1977 tags: trunk) | |
11:33 | Fix to test code to build when ENABLE_IOTRACE is not defined. (CVS 5079) (check-in: 8fa2bda4c5 user: danielk1977 tags: trunk) | |
2008-05-02
| ||
14:23 | Make sure that when a connection is blocking on a RESERVED lock that it continues after the lock is released. Ticket #3093. (CVS 5078) (check-in: 3dc334aa4a user: drh tags: trunk) | |
Changes
Changes to src/test1.c.
︙ | ︙ | |||
9 10 11 12 13 14 15 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** Code for testing all sorts of SQLite interfaces. This code ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ** May you share freely, never taking more than you give. ** ************************************************************************* ** Code for testing all sorts of SQLite interfaces. This code ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** ** $Id: test1.c,v 1.301 2008/05/05 11:33:48 danielk1977 Exp $ */ #include "sqliteInt.h" #include "tcl.h" #include <stdlib.h> #include <string.h> /* |
︙ | ︙ | |||
243 244 245 246 247 248 249 250 251 252 253 254 255 256 | */ static int test_io_trace( void *NotUsed, Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ int argc, /* Number of arguments */ char **argv /* Text of each argument */ ){ if( argc!=2 ){ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " FILENAME\"", 0); return TCL_ERROR; } if( iotrace_file ){ if( iotrace_file!=stdout && iotrace_file!=stderr ){ | > | 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | */ static int test_io_trace( void *NotUsed, Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ int argc, /* Number of arguments */ char **argv /* Text of each argument */ ){ #if !defined(SQLITE_OMIT_TRACE) && defined(SQLITE_ENABLE_IOTRACE) if( argc!=2 ){ Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " FILENAME\"", 0); return TCL_ERROR; } if( iotrace_file ){ if( iotrace_file!=stdout && iotrace_file!=stderr ){ |
︙ | ︙ | |||
265 266 267 268 269 270 271 | }else if( strcmp(argv[1],"stderr")==0 ){ iotrace_file = stderr; }else{ iotrace_file = fopen(argv[1], "w"); } sqlite3IoTrace = io_trace_callback; } | > | | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | }else if( strcmp(argv[1],"stderr")==0 ){ iotrace_file = stderr; }else{ iotrace_file = fopen(argv[1], "w"); } sqlite3IoTrace = io_trace_callback; } #endif return TCL_OK; } /* ** Usage: sqlite3_exec_printf DB FORMAT STRING ** ** Invoke the sqlite3_exec_printf() interface using the open database |
︙ | ︙ |