diff options
author | Alan Conway <aconway@apache.org> | 2008-04-18 19:56:27 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-18 19:56:27 +0000 |
commit | 8633240562fad63a493b319d12b9c663ca081c75 (patch) | |
tree | 6f1be4b3b8f0d806d6edcda2fe5603a4db157cf7 /cpp/src | |
parent | e785a01818b6f65ca365122c20a4c4f746b7080e (diff) | |
download | qpid-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.cpp | 5 |
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(); |