summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-04-18 19:56:27 +0000
committerAlan Conway <aconway@apache.org>2008-04-18 19:56:27 +0000
commit8633240562fad63a493b319d12b9c663ca081c75 (patch)
tree6f1be4b3b8f0d806d6edcda2fe5603a4db157cf7 /cpp/src
parente785a01818b6f65ca365122c20a4c4f746b7080e (diff)
downloadqpid-python-8633240562fad63a493b319d12b9c663ca081c75.tar.gz
Fix test failure.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/amqp_0_10/serialize.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/amqp_0_10/serialize.cpp b/cpp/src/tests/amqp_0_10/serialize.cpp
index 6dfa5c191d..f07feeb18a 100644
--- a/cpp/src/tests/amqp_0_10/serialize.cpp
+++ b/cpp/src/tests/amqp_0_10/serialize.cpp
@@ -348,9 +348,10 @@ QPID_AUTO_TEST_CASE(testStruct) {
dp.exchange = "foo";
Codec::encode(back_inserter(data))(dp);
- uint16_t encodedBits=uint8_t(data[1]); // Little-endian
+ // Skip 4 bytes size, little-endian decode for pack bits.
+ uint16_t encodedBits=uint8_t(data[5]);
encodedBits <<= 8;
- encodedBits += uint8_t(data[0]);
+ encodedBits += uint8_t(data[4]);
BOOST_CHECK_EQUAL(encodedBits, packBits(dp));
data.clear();