I'm writing unit tests using Boost.Test against some old C math library. One of tested functions in known to raise Integer Division By Zero system exception for some specified input. Let's say it's desired behavior and I want to write negative test for this case.
BOOST_REQUIRE_THROW(statement, exception);
is not working for me as it is not C++ style exception (this macro is using try {} catch {}
internally).
What is the correct way to handle case when I'm expecting failure on system level?