diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2010-01-06 21:48:42 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2010-01-06 21:48:42 +0000 |
commit | 00be653217ca915d9da6213ff69a60e86344672f (patch) | |
tree | 09654efad08fb1b5c19b267b122d929b98db5098 /qpid/cpp/src/tests/QueueTest.cpp | |
parent | 34a8997d6993a6815f2f45beb553f73310b24f4e (diff) | |
download | qpid-python-00be653217ca915d9da6213ff69a60e86344672f.tar.gz |
fix & test QPID-2320
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@896687 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/QueueTest.cpp')
-rw-r--r-- | qpid/cpp/src/tests/QueueTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/QueueTest.cpp b/qpid/cpp/src/tests/QueueTest.cpp index 6c2adf5c87..80c69ac386 100644 --- a/qpid/cpp/src/tests/QueueTest.cpp +++ b/qpid/cpp/src/tests/QueueTest.cpp @@ -544,9 +544,14 @@ QPID_AUTO_TEST_CASE(testLVQAcquire){ framing::SequenceNumber sequence(1); QueuedMessage qmsg(queue.get(), msg1, sequence); QueuedMessage qmsg2(queue.get(), msg2, ++sequence); + framing::SequenceNumber sequence1(10); + QueuedMessage qmsg3(queue.get(), 0, sequence1); BOOST_CHECK(!queue->acquire(qmsg)); BOOST_CHECK(queue->acquire(qmsg2)); + // Acquire the massage again to test failure case. + BOOST_CHECK(!queue->acquire(qmsg2)); + BOOST_CHECK(!queue->acquire(qmsg3)); BOOST_CHECK_EQUAL(queue->getMessageCount(), 2u); |