summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/tests/unit_test.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/unit_test.h b/qpid/cpp/src/tests/unit_test.h
index df3ebfb1fe..fc542e62ad 100644
--- a/qpid/cpp/src/tests/unit_test.h
+++ b/qpid/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.