You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2011/02/18 16:43:48 UTC
svn commit: r1072026 -
/qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp
Author: aconway
Date: Fri Feb 18 15:43:48 2011
New Revision: 1072026
URL: http://svn.apache.org/viewvc?rev=1072026&view=rev
Log:
Fix compile errors on RHEL5 - signed/unsigned comparison.
Modified:
qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp
Modified: qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp
URL: http://svn.apache.org/viewvc/qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp?rev=1072026&r1=1072025&r2=1072026&view=diff
==============================================================================
--- qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp (original)
+++ qpid/branches/qpid-2935/qpid/cpp/src/tests/QueueFlowLimitTest.cpp Fri Feb 18 15:43:48 2011
@@ -155,8 +155,8 @@ QPID_AUTO_TEST_CASE(testFlowSize)
BOOST_CHECK(!flow->isFlowControlActive());
}
BOOST_CHECK(!flow->isFlowControlActive()); // 60 on queue
- BOOST_CHECK_EQUAL(6, flow->getFlowCount());
- BOOST_CHECK_EQUAL(60, flow->getFlowSize());
+ BOOST_CHECK_EQUAL(6u, flow->getFlowCount());
+ BOOST_CHECK_EQUAL(60u, flow->getFlowSize());
QueuedMessage msg_9 = createMessage(9);
flow->enqueued(msg_9);
@@ -171,8 +171,8 @@ QPID_AUTO_TEST_CASE(testFlowSize)
msgs.push_back(createMessage(10));
flow->enqueued(msgs.back());
BOOST_CHECK(flow->isFlowControlActive()); // 81 on queue
- BOOST_CHECK_EQUAL(10, flow->getFlowCount());
- BOOST_CHECK_EQUAL(81, flow->getFlowSize());
+ BOOST_CHECK_EQUAL(10u, flow->getFlowCount());
+ BOOST_CHECK_EQUAL(81u, flow->getFlowSize());
flow->dequeued(msgs.front());
msgs.pop_front();
@@ -197,8 +197,8 @@ QPID_AUTO_TEST_CASE(testFlowSize)
flow->dequeued(msgs.front());
msgs.pop_front();
BOOST_CHECK(!flow->isFlowControlActive()); // 20 on queue
- BOOST_CHECK_EQUAL(2, flow->getFlowCount());
- BOOST_CHECK_EQUAL(20, flow->getFlowSize());
+ BOOST_CHECK_EQUAL(2u, flow->getFlowCount());
+ BOOST_CHECK_EQUAL(20u, flow->getFlowSize());
}
QPID_AUTO_TEST_CASE(testFlowArgs)
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org