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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user