summaryrefslogtreecommitdiff
path: root/cpp/src/tests/cluster_test.cpp
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2008-09-12 19:07:13 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2008-09-12 19:07:13 +0000
commitcc9d3721a21b20bc1cfb11712553d611c07c0456 (patch)
tree7877d8d14c896114ba6a26393d35e95fd97caed2 /cpp/src/tests/cluster_test.cpp
parentebb59131b198b693c5774dd51656fec520ddd770 (diff)
downloadqpid-python-cc9d3721a21b20bc1cfb11712553d611c07c0456.tar.gz
Corrected warning for unsigned
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@694776 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/cluster_test.cpp')
-rw-r--r--cpp/src/tests/cluster_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/cluster_test.cpp b/cpp/src/tests/cluster_test.cpp
index da77d7405e..28ee439a5d 100644
--- a/cpp/src/tests/cluster_test.cpp
+++ b/cpp/src/tests/cluster_test.cpp
@@ -252,10 +252,10 @@ QPID_AUTO_TEST_CASE_EXPECTED_FAILURES(testCatchUpSharedState, 1) {
BOOST_CHECK_EQUAL(m.getData(), "foo");
BOOST_CHECK(c1.subs.get(m, "q", TIME_SEC));
BOOST_CHECK_EQUAL(m.getData(), "bar");
- BOOST_CHECK_EQUAL(c1.session.queueQuery("q").getMessageCount(), 0);
+ BOOST_CHECK_EQUAL(c1.session.queueQuery("q").getMessageCount(), (unsigned)0);
BOOST_CHECK(c1.subs.get(m, "p", TIME_SEC));
BOOST_CHECK_EQUAL(m.getData(), "poo");
- BOOST_CHECK_EQUAL(c1.session.queueQuery("p").getMessageCount(), 0);
+ BOOST_CHECK_EQUAL(c1.session.queueQuery("p").getMessageCount(), (unsigned)0);
}
QPID_AUTO_TEST_CASE(testStall) {
@@ -276,7 +276,7 @@ QPID_AUTO_TEST_CASE(testStall) {
// But it should not be on broker 0.
boost::shared_ptr<broker::Queue> q0 = cluster.broker0->broker->getQueues().find("q");
BOOST_REQUIRE(q0);
- BOOST_CHECK_EQUAL(q0->getMessageCount(), 0);
+ BOOST_CHECK_EQUAL(q0->getMessageCount(), (unsigned)0);
// Now unstall and we should get the message.
getGlobalCluster().unStall();
Message m;
@@ -310,7 +310,7 @@ QPID_AUTO_TEST_CASE(testDumpConsumers) {
// Verify that the queue has been drained on both brokers.
// This proves that the consumer was replicated when the second broker joined.
- BOOST_CHECK_EQUAL(a.session.queueQuery("q").getMessageCount(), 0);
+ BOOST_CHECK_EQUAL(a.session.queueQuery("q").getMessageCount(), (unsigned)0);
}