boostorg / statechart

Boost.org statechart module
http://boost.org/libs/statechart
22 stars 43 forks source link

Fix UnconsumedResultTest on modern compilers #3

Closed MarcelRaad closed 6 years ago

MarcelRaad commented 9 years ago

This test relied on a destructor throwing an exception in debug mode, which crashed the program on modern compilers. Now the custom assert handler for the regression tests increments a counter instead of throwing an exception.

Tested on Visual C++ 14 CTP6.

The failing tests are the four UnconsumedResultTest* on msvc-14.0, clang- darwin-11, clang- darwin-14, and all the "BP x86_64 C++11" testers: http://www.boost.org/development/tests/develop/developer/statechart.html

pdimov commented 6 years ago

Fixed in https://github.com/boostorg/statechart/commit/7be5ff299529257153839c13c2c8f57da33b43c2 before I noticed this PR.