aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/tests/generator_test.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-10 09:31:07 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-10 09:31:07 +0000
commitc7748338f2f83bdc0b19894366de668c22f74e7c (patch)
tree4ad26632e5b4c7cf56be9964bfaf5ebfad8533f4 /Source/charon/tests/generator_test.c
parent67a57dc6f4f0eaec37e9e4b71be91595d1c5d2ac (diff)
downloadstrongswan-c7748338f2f83bdc0b19894366de668c22f74e7c.tar.bz2
strongswan-c7748338f2f83bdc0b19894366de668c22f74e7c.tar.xz
- fixed bug in memory reallocation
Diffstat (limited to 'Source/charon/tests/generator_test.c')
-rw-r--r--Source/charon/tests/generator_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/charon/tests/generator_test.c b/Source/charon/tests/generator_test.c
index 2f6fa47f9..ac1dafcf2 100644
--- a/Source/charon/tests/generator_test.c
+++ b/Source/charon/tests/generator_test.c
@@ -84,7 +84,9 @@ void test_generator_with_header_payload(tester_t *tester)
0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x08,
};
-
+
+ tester->assert_true(tester,(generated_data.len == sizeof(expected_generation)), "compare generated data length");
+
tester->assert_true(tester,(memcmp(expected_generation,generated_data.ptr,sizeof(expected_generation)) == 0), "compare generated data");
allocator_free_chunk(generated_data);