diff options
author | Alan Conway <aconway@apache.org> | 2008-04-09 14:25:09 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-09 14:25:09 +0000 |
commit | edaf94463aedcbe52870213b1e1db39ecf741731 (patch) | |
tree | 2dfa86314bee7b7391fa50571b0e1b3b960fa3f5 /cpp/src | |
parent | a298b8598631abcb96b14d0fc00e047aeeb65d6c (diff) | |
download | qpid-python-edaf94463aedcbe52870213b1e1db39ecf741731.tar.gz |
Improved diagnostics in allSegmentTypes test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@646376 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/amqp_0_10/serialize.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/tests/amqp_0_10/serialize.cpp b/cpp/src/tests/amqp_0_10/serialize.cpp index e479151ec0..2e1f2c40a8 100644 --- a/cpp/src/tests/amqp_0_10/serialize.cpp +++ b/cpp/src/tests/amqp_0_10/serialize.cpp @@ -20,6 +20,7 @@ */ #include "unit_test.h" +#include "tests/allSegmentTypes.h" #include "qpid/framing/AMQFrame.h" #include "qpid/framing/Buffer.h" @@ -42,6 +43,7 @@ #include <boost/mpl/back_inserter.hpp> #include <boost/mpl/copy.hpp> #include <boost/mpl/empty_sequence.hpp> +#include <boost/current_function.hpp> #include <iterator> #include <string> #include <sstream> @@ -299,6 +301,7 @@ BOOST_AUTO_TEST_CASE(testArray) { struct RecodeUnit { template <class T> void operator() (const T& t) { + BOOST_MESSAGE(BOOST_CURRENT_FUNCTION); using qpid::framing::Buffer; using qpid::framing::AMQFrame; @@ -317,6 +320,7 @@ struct RecodeUnit { Buffer buf2(&data2[0], data.size()); f.encode(buf2); + BOOST_CHECK_MESSAGE(data == data2, BOOST_CURRENT_FUNCTION); BOOST_CHECK_EQUAL(data, data2); Codec::Decoder<string::iterator> decode(data2.begin()); @@ -329,10 +333,10 @@ struct RecodeUnit { Codec::encode(back_inserter(data3))(u.getHeader())(u); BOOST_CHECK_EQUAL(data3, data2); + BOOST_CHECK_MESSAGE(data3 == data2, BOOST_CURRENT_FUNCTION); } }; -// FIXME aconway 2008-04-08: TODO // BOOST_AUTO_TEST_CASE(testSerializeAllSegmentTypes) { // RecodeUnit recode; // allSegmentTypes(recode); |