1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

When using MSVC to build test code, suppress the popup dialog when abort is called from the sqlite_abort() test function.

FossilOrigin-Name: 55d3d39f1c653627fc4c048e12fdd8c4444b6de7
This commit is contained in:
shaneh
2010-07-07 16:51:36 +00:00
parent b638a3d3eb
commit 2ceced15ce
3 changed files with 13 additions and 7 deletions

View File

@@ -1901,6 +1901,12 @@ static int sqlite_abort(
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;