Opened 12 years ago

Closed 12 years ago

#4579 closed Feature Requests (wontfix)

MSVC regression tests need _set_abort_behavior() call

Reported by: Jim Bell <jim@…> Owned by: René Rivera
Milestone: To Be Determined Component: Regression Testing USE GITHUB
Version: Boost Development Trunk Severity: Optimization
Keywords: BOOST_MSVC, abort, retry, ignore Cc:

Description

A number of boost regression tests fail and put up a dialog:

Microsoft Visual C++ Debug Library
Debug Error!
Program …
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
(Press Retry to debug the application.)
[Buttons:] Abort, Retry, Ignore. 

The '--timeout' parameter to run.py eventually kills it, but even at 5 (minutes), dozens of these assertions extend the regression test by hours, and I think that the current trunk test is triggering at least a dozen.

You can inhibit this box via the MSVC run-time function _set_abort_behavior():

_set_abort_behavior( 0, _WRITE_ABORT_MSG|_CALL_REPORTFAULT);

Can the regression-testing framework insert this call for each program it builds under Win32/MSVC?

Change History (2)

comment:1 by Steven Watanabe, 12 years ago

I don't think that's possible. The individual tests will need to handle this. I think Boost.Test already handles it, so libraries using it shouldn't have a problem.

comment:2 by Jim Bell <jim@…>, 12 years ago

Resolution: wontfix
Status: newclosed

Work-around: I think this can be handled by a system registry change:

"\HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\ForceQueue" set to 1

See <http://lists.boost.org/Archives/boost/2011/01/175192.php>

Note: See TracTickets for help on using tickets.