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 | 1b4a961ec807e5e61cd232b08020a935a4f76f4c (patch) | |
tree | a696732d72bd36cac2f8d6dff7d41debf3fb89c0 /qpid/cpp/src/tests/Uuid.cpp | |
parent | f89c4bab5b5414796ca104d9a9a6c7fc138e10cd (diff) | |
download | qpid-python-1b4a961ec807e5e61cd232b08020a935a4f76f4c.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@649294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Uuid.cpp')
-rw-r--r-- | qpid/cpp/src/tests/Uuid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/Uuid.cpp b/qpid/cpp/src/tests/Uuid.cpp index c158cf53d2..ad26f796c0 100644 --- a/qpid/cpp/src/tests/Uuid.cpp +++ b/qpid/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()); |