qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphael Fuchs <raphael.fuc...@gmail.com>
Subject Qpid getUnsettledAcks()
Date Mon, 17 Nov 2014 16:28:36 GMT
 Hi all,

qpid seems to be running fine on my Solaris machine, but there is one unit
test which fails.
I am running qpid 0.28.


noname@solaris:~/install/qpid-
0.28_solaris/cpp/build/src/tests$ ./unit_test
Running 310 test cases...
/export/home/noname/install/qpid-0.28_solaris/cpp/src/tests/MessagingSessionTests.cpp(369):
error in "testUnsettledAcks": check fix.session.getUnsettledAcks() == 10u
failed [0 != 10]
/export/home/noname/install/qpid-0.28_solaris/cpp/src/tests/MessagingSessionTests.cpp(862):
last checkpoint


The Source is:
-------------------

QPID_AUTO_TEST_CASE(testUnsettledAcks)
 357 {
 358     QueueFixture fix;
 359     Sender sender = fix.session.createSender(fix.queue);
 360     for (uint i = 0; i < 10; ++i) {
 361         sender.send(Message((boost::format("Message_%1%") %
(i+1)).str()));
 362     }
 363     Receiver receiver = fix.session.createReceiver(fix.queue);
 364     for (uint i = 0; i < 10; ++i) {
 365         BOOST_CHECK_EQUAL(receiver.fetch().getContent(),
(boost::format("Message_%1%") % (i+1)).str());
 366     }
 367     BOOST_CHECK_EQUAL(fix.session.getUnsettledAcks(), 0u);
 368     fix.session.acknowledge();
 369     BOOST_CHECK_EQUAL(fix.session.getUnsettledAcks(), 10u); // this
one fails
 370     fix.session.sync();
 371     BOOST_CHECK_EQUAL(fix.session.getUnsettledAcks(), 0u);
 372 }


So getUnsettledAcks() seems to fail. Can someone tell me what
getUnsettledAcks() does and if it is an important function?

Kind Regards,
Raphael

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message