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/Uuid.cpp | |
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/Uuid.cpp')
-rw-r--r-- | cpp/src/tests/Uuid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/Uuid.cpp b/cpp/src/tests/Uuid.cpp index c158cf53d2..ad26f796c0 100644 --- a/cpp/src/tests/Uuid.cpp +++ b/cpp/src/tests/Uuid.cpp @@ -35,7 +35,7 @@ struct UniqueSet : public std::set<Uuid> { } }; -BOOST_AUTO_TEST_CASE(testUuidCtor) { +QPID_AUTO_TEST_CASE(testUuidCtor) { // Uniqueness boost::array<Uuid,1000> uuids; for_each(uuids.begin(), uuids.end(), mem_fun_ref(&Uuid::generate)); @@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(testUuidCtor) { boost::array<uint8_t, 16> sample = {{'\x1b', '\x4e', '\x28', '\xba', '\x2f', '\xa1', '\x11', '\xd2', '\x88', '\x3f', '\xb9', '\xa7', '\x61', '\xbd', '\xe3', '\xfb'}}; const string sampleStr("1b4e28ba-2fa1-11d2-883f-b9a761bde3fb"); -BOOST_AUTO_TEST_CASE(testUuidIstream) { +QPID_AUTO_TEST_CASE(testUuidIstream) { Uuid uuid; istringstream in(sampleStr); in >> uuid; @@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(testUuidIstream) { BOOST_CHECK(uuid == sample); } -BOOST_AUTO_TEST_CASE(testUuidOstream) { +QPID_AUTO_TEST_CASE(testUuidOstream) { Uuid uuid(sample.c_array()); ostringstream out; out << uuid; @@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE(testUuidOstream) { BOOST_CHECK_EQUAL(out.str(), sampleStr); } -BOOST_AUTO_TEST_CASE(testUuidEncodeDecode) { +QPID_AUTO_TEST_CASE(testUuidEncodeDecode) { char* buff = static_cast<char*>(::alloca(Uuid::size())); Buffer wbuf(buff, Uuid::size()); Uuid uuid(sample.c_array()); |