/ Check-in [55d3d39f]
Login

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

Overview
Comment:When using MSVC to build test code, suppress the popup dialog when abort is called from the sqlite_abort() test function.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 55d3d39f1c653627fc4c048e12fdd8c4444b6de7
User & Date: shaneh 2010-07-07 16:51:36
Context
2010-07-07
17:53
When rolling back a savepoint, reset the changeCountDone flag. check-in: fb62f4e3 user: dan tags: trunk
16:51
When using MSVC to build test code, suppress the popup dialog when abort is called from the sqlite_abort() test function. check-in: 55d3d39f user: shaneh tags: trunk
16:49
Fix some MSVC compiler warnings in the ASYNC extension. check-in: b951c867 user: shaneh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/test1.c.

1897
1898
1899
1900
1901
1902
1903






1904
1905
1906
1907
1908
1909
1910
*/
static int sqlite_abort(
  void *NotUsed,
  Tcl_Interp *interp,    /* The TCL interpreter that invoked this command */
  int argc,              /* Number of arguments */
  char **argv            /* Text of each argument */
){






  assert( interp==0 );   /* This will always fail */
  abort();
  return TCL_OK;
}

/*
** The following routine is a user-defined SQL function whose purpose







>
>
>
>
>
>







1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
*/
static int sqlite_abort(
  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(_MSC_VER)
  /* We do this, otherwise the test will halt with a popup message
   * that we have to click away before the test will continue.
   */
  _set_abort_behavior( 0, _CALL_REPORTFAULT );
#endif
  assert( interp==0 );   /* This will always fail */
  abort();
  return TCL_OK;
}

/*
** The following routine is a user-defined SQL function whose purpose