diff options
author | Gordon Sim <gsim@apache.org> | 2009-03-17 08:43:29 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-03-17 08:43:29 +0000 |
commit | e57b9c7793b633747da1461832b336c4b2b3b2e9 (patch) | |
tree | 3f70bf8acc9b24be19e5c07554d899f0447ca183 /cpp/src/tests | |
parent | d0b2110d4e33bc9f24ffb72292e3e293fa8c5a48 (diff) | |
download | qpid-python-e57b9c7793b633747da1461832b336c4b2b3b2e9.tar.gz |
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
Diffstat (limited to 'cpp/src/tests')
-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. |