On 7/6/2015 1:32 PM, John Maddock wrote:
The short program below passes with MSVC and GCC Linux, but fails with Mingw-x64 at runtime (the expected failures count gets ignored).
This is with current develop. Any ideas?
BTW the new decorator based approach does work OK, but is only supported on a tiny number of compilers as it seems to rely on the preprocessor lib using variadic macros, as opposed to Boost.Config marking them as available.
Without wishing to defend or disagree with Paul Mensonides' decision to
make Boost PP not depend on Boost config and to use a fairly
conservative test for variadic macro support in Boost PP, Boost.Test
could do:
#include
Here's the program:
#define BOOST_TEST_MAIN #include
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(test_main, 10000);
BOOST_AUTO_TEST_CASE(test_main) { BOOST_ERROR("one"); BOOST_ERROR("two"); }