diff options
author | shaneh <shaneh@noemail.net> | 2010-07-07 16:51:36 +0000 |
---|---|---|
committer | shaneh <shaneh@noemail.net> | 2010-07-07 16:51:36 +0000 |
commit | 2ceced15cee33a43a977bda01d3ad0e73f22bc1d (patch) | |
tree | 0999f0e18889aaf8226864262f80c9d29b90daf9 /src | |
parent | b638a3d3eb0df0db9566945b99e7496ed59f29ca (diff) | |
download | sqlite-2ceced15cee33a43a977bda01d3ad0e73f22bc1d.tar.gz sqlite-2ceced15cee33a43a977bda01d3ad0e73f22bc1d.zip |
When using MSVC to build test code, suppress the popup dialog when abort is called from the sqlite_abort() test function.
FossilOrigin-Name: 55d3d39f1c653627fc4c048e12fdd8c4444b6de7
Diffstat (limited to 'src')
-rw-r--r-- | src/test1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test1.c b/src/test1.c index ec65df86c..f8257e0c1 100644 --- a/src/test1.c +++ b/src/test1.c @@ -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; |