From 2b1b179702863e8e6d077c025f5244eaa461a990 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 28 Nov 2007 17:13:28 +0000 Subject: 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/qpid@599067 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/SessionState.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpp/src/tests/SessionState.cpp') diff --git a/cpp/src/tests/SessionState.cpp b/cpp/src/tests/SessionState.cpp index b8d0560c48..56d0055ed8 100644 --- a/cpp/src/tests/SessionState.cpp +++ b/cpp/src/tests/SessionState.cpp @@ -17,10 +17,12 @@ */ #include "qpid/framing/SessionState.h" +#include "qpid/Exception.h" #include -#include -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() -- cgit v1.2.1