/ Check-in [6705f21e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a flush of stdout so some test code reading from a command pipe works correctly on Windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6705f21effaa2f72dc5e17e888d679b8d35c2c3a
User & Date: shaneh 2011-06-22 14:21:31
Context
2011-06-22
14:43
Adjust a test case in triggerC.test to handle non-default SQLITE_MAX_TRIGGER_DEPTH settings. check-in: f14339c5 user: shaneh tags: trunk
14:21
Add a flush of stdout so some test code reading from a command pipe works correctly on Windows. check-in: 6705f21e user: shaneh tags: trunk
10:56
Change a test case in types3.test slightly so that it works with the latest versions of Tcl. check-in: 6e1f4df5 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test1.c.

  5513   5513   
  5514   5514     if( objc!=2 ){
  5515   5515       Tcl_WrongNumArgs(interp, 1, objv, "STMT");
  5516   5516       return TCL_ERROR;
  5517   5517     }
  5518   5518     if( getStmtPointer(interp, Tcl_GetString(objv[1]), &pStmt) ) return TCL_ERROR;
  5519   5519     rc = printExplainQueryPlan(pStmt);
         5520  +  /* This is needed on Windows so that a test case using this 
         5521  +  ** function can open a read pipe and get the output of
         5522  +  ** printExplainQueryPlan() immediately.
         5523  +  */
         5524  +  fflush(stdout);
  5520   5525     Tcl_SetResult(interp, (char *)t1ErrorName(rc), 0);
  5521   5526     return TCL_OK;
  5522   5527   }
  5523   5528   #endif /* SQLITE_OMIT_EXPLAIN */
  5524   5529   
  5525   5530   /*
  5526   5531   ** sqlite3_test_control VERB ARGS...