diff options
Diffstat (limited to 'cpp/src/tests/unit_test.h')
-rw-r--r-- | cpp/src/tests/unit_test.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/tests/unit_test.h b/cpp/src/tests/unit_test.h index df3ebfb1fe..fc542e62ad 100644 --- a/cpp/src/tests/unit_test.h +++ b/cpp/src/tests/unit_test.h @@ -61,7 +61,14 @@ namespace { struct test_name { void test_method(); }; } \ void test_name::test_method() -#endif // Workaround for BOOST_AUTO_TEST_SUITE_EXPECTED_FAILURES +#endif // Workaround for BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES + +// Correct syntax for boost > 1.36 +#if (BOOST_VERSION > 103500) +# define QPID_AUTO_TEST_CASE_EXPECTED_FAILURES(name,n) \ + BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(name,n) \ + BOOST_AUTO_TEST_CASE(name) +#endif // Correct syntax for boost > 1.36 // // Default definitions for latest version of boost. |