diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-04-17 21:46:22 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-04-17 21:46:22 +0000 |
commit | cfde776724c2f214b962dc8077ddca8305ddd705 (patch) | |
tree | 852a49ea858393a93886ac7dd3a5d0863ca4a935 /cpp/src/tests/unit_test.h | |
parent | 20e4466ca57bc7bdc81ca0857549a63c77f41d8a (diff) | |
download | qpid-python-cfde776724c2f214b962dc8077ddca8305ddd705.tar.gz |
Patch for improved compatibility with gcc 3.4 and boost 1.33
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/unit_test.h')
-rw-r--r-- | cpp/src/tests/unit_test.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/tests/unit_test.h b/cpp/src/tests/unit_test.h index 58ec20d26c..098545cbd8 100644 --- a/cpp/src/tests/unit_test.h +++ b/cpp/src/tests/unit_test.h @@ -28,16 +28,26 @@ #include <boost/version.hpp> #include <limits.h> // Must be inclued beofre boost/test headers. -#if (BOOST_VERSION < 103400) +#if (BOOST_VERSION < 103300) + +# include <boost/test/auto_unit_test.hpp> + +# define QPID_AUTO_TEST_SUITE(name) +# define QPID_AUTO_TEST_CASE(name) BOOST_AUTO_UNIT_TEST(name) +# define QPID_AUTO_TEST_SUITE_END() + +#elif (BOOST_VERSION < 103400) # include <boost/test/auto_unit_test.hpp> # define QPID_AUTO_TEST_SUITE(name) BOOST_AUTO_TEST_SUITE(name); +# define QPID_AUTO_TEST_CASE(name) BOOST_AUTO_TEST_CASE(name) # define QPID_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END(); #else # define QPID_AUTO_TEST_SUITE(name) BOOST_AUTO_TEST_SUITE(name) +# define QPID_AUTO_TEST_CASE(name) BOOST_AUTO_TEST_CASE(name) # define QPID_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END() # include <boost/test/unit_test.hpp> |