From e57b9c7793b633747da1461832b336c4b2b3b2e9 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 17 Mar 2009 08:43:29 +0000 Subject: QPID-1741: Fix for later versions of boost test API (from Jan Sarenik) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@755152 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/unit_test.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpp') 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. -- cgit v1.2.1