
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 <boost/config.h> #define BOOST_PP_VARIADICS !BOOST_NO_CXX11_VARIADIC_MACROS before including any Boost PP headers to let config determine variadic macro support.
Here's the program:
#define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(test_main, 10000);
BOOST_AUTO_TEST_CASE(test_main) { BOOST_ERROR("one"); BOOST_ERROR("two"); }