aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/testcases/send_queue_test.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-29 07:15:52 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-29 07:15:52 +0000
commitd0cc48e5ece245c70708e9da79c785ad460a6501 (patch)
tree127f6ca61094b7346c00c0a3304a6f2d7d7df557 /Source/charon/testcases/send_queue_test.c
parent1bcea5140da4be45825f672094afa38130b051d1 (diff)
downloadstrongswan-d0cc48e5ece245c70708e9da79c785ad460a6501.tar.bz2
strongswan-d0cc48e5ece245c70708e9da79c785ad460a6501.tar.xz
- memory allocation tests removed
Diffstat (limited to 'Source/charon/testcases/send_queue_test.c')
-rw-r--r--Source/charon/testcases/send_queue_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/testcases/send_queue_test.c b/Source/charon/testcases/send_queue_test.c
index 7e3d0bca2..786dd2b7f 100644
--- a/Source/charon/testcases/send_queue_test.c
+++ b/Source/charon/testcases/send_queue_test.c
@@ -69,7 +69,7 @@ static void test_send_queue_sender(send_queue_test_t * testinfo)
{
packet_t *packet = packet_create(AF_INET);
testinfo->tester->assert_true(testinfo->tester,(packet != NULL), "create packet call check");
- testinfo->tester->assert_true(testinfo->tester,(testinfo->send_queue->add(testinfo->send_queue,packet) == SUCCESS), "add packet call check");
+ testinfo->send_queue->add(testinfo->send_queue,packet);
}
}
@@ -84,7 +84,7 @@ static void test_send_queue_receiver(send_queue_test_t * testinfo)
for (i = 0; i < testinfo->remove_item_count; i++)
{
packet_t *packet;
- testinfo->tester->assert_true(testinfo->tester,(testinfo->send_queue->get(testinfo->send_queue,&packet) == SUCCESS), "get packet call check");
+ packet = testinfo->send_queue->get(testinfo->send_queue);
testinfo->tester->assert_true(testinfo->tester,( packet != NULL), "packet not NULL call check");