diff options
author | Alan Conway <aconway@apache.org> | 2007-11-28 17:13:28 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-11-28 17:13:28 +0000 |
commit | acd260bce099be36b879826a0921daf9cb2fe140 (patch) | |
tree | 7f1c708dafa7a1399b62ef9316550b17d19ace3d /qpid/cpp/src/tests/SessionState.cpp | |
parent | e427d74267a1a11238425fc540ab84cde2474a3e (diff) | |
download | qpid-python-acd260bce099be36b879826a0921daf9cb2fe140.tar.gz |
Fixed to build with boost 1.34 as well as boost 1.33
- boost::ptr_map API changed.
- Boost.Test unit test framework changes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@599067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SessionState.cpp')
-rw-r--r-- | qpid/cpp/src/tests/SessionState.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/SessionState.cpp b/qpid/cpp/src/tests/SessionState.cpp index b8d0560c48..56d0055ed8 100644 --- a/qpid/cpp/src/tests/SessionState.cpp +++ b/qpid/cpp/src/tests/SessionState.cpp @@ -17,10 +17,12 @@ */ #include "qpid/framing/SessionState.h" +#include "qpid/Exception.h" #include <boost/bind.hpp> -#include <boost/test/auto_unit_test.hpp> -BOOST_AUTO_TEST_SUITE(SessionState); +#include "unit_test.h" + +QPID_AUTO_TEST_SUITE(SessionStateTestSuite) using namespace std; using namespace qpid::framing; @@ -119,7 +121,7 @@ BOOST_AUTO_TEST_CASE(testReplay) { try { session.receivedAck(6); BOOST_FAIL("expected exception"); - } catch(const qpid::Exception&) {} + } catch(const std::exception&) {} } @@ -141,4 +143,4 @@ BOOST_AUTO_TEST_CASE(testReceived) { BOOST_CHECK_EQUAL(5u, *s3.received(f)); } -BOOST_AUTO_TEST_SUITE_END(); +QPID_AUTO_TEST_SUITE_END() |