diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-29 16:42:53 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-29 16:42:53 -0700 |
commit | 71c6fa79f77a5475d03e276ddd782decf1f00fa4 (patch) | |
tree | 633c5ac4f72271fc7c8ae6747a39108ce4ad7c1c /libqcdm/tests/test-qcdm.c | |
parent | 2f099e2964040e5499f332a892352f148f5b0177 (diff) |
qcdm: fix CRC checking on some packets
Should be pointing to the CRC location in the *unescaped* packet
buffer since the CRC is subject to escaping/unescaping. Previous
code pointed to the wrong location in the escaped packet buffer,
which was often pointing to the write place if there weren't many
escaped bytes in the input buffer, but was still wrong.
Diffstat (limited to 'libqcdm/tests/test-qcdm.c')
-rw-r--r-- | libqcdm/tests/test-qcdm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libqcdm/tests/test-qcdm.c b/libqcdm/tests/test-qcdm.c index 01535cac..d87a2e31 100644 --- a/libqcdm/tests/test-qcdm.c +++ b/libqcdm/tests/test-qcdm.c @@ -22,6 +22,7 @@ #include "test-qcdm-escaping.h" #include "test-qcdm-com.h" #include "test-qcdm-result.h" +#include "test-qcdm-utils.h" typedef struct { gpointer com_data; @@ -82,6 +83,7 @@ int main (int argc, char **argv) g_test_suite_add (suite, TESTCASE (test_escape1, NULL)); g_test_suite_add (suite, TESTCASE (test_escape2, NULL)); g_test_suite_add (suite, TESTCASE (test_escape_unescape, NULL)); + g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_buffer, NULL)); g_test_suite_add (suite, TESTCASE (test_result_string, NULL)); g_test_suite_add (suite, TESTCASE (test_result_uint32, NULL)); g_test_suite_add (suite, TESTCASE (test_result_uint8, NULL)); |