(no commit message)
authorJan Hutter <jhutter@hsr.ch>
Wed, 9 Nov 2005 16:33:35 +0000 (16:33 -0000)
committerJan Hutter <jhutter@hsr.ch>
Wed, 9 Nov 2005 16:33:35 +0000 (16:33 -0000)
Source/charon/tests/ike_sa_id_test.c
Source/charon/tests/ike_sa_manager_test.c

index b8147c1..997d4e9 100644 (file)
@@ -90,8 +90,8 @@ void test_ike_sa_id(tester_t *tester)
        tester->assert_true(tester,(ike_sa_id->destroy(ike_sa_id) == SUCCESS), "destroy call check");
        tester->assert_true(tester,(equal->destroy(equal) == SUCCESS), "destroy call check");
        tester->assert_true(tester,(clone->destroy(clone) == SUCCESS), "destroy call check");
-       tester->assert_true(tester,(clone->destroy(other1) == SUCCESS), "destroy call check");
-       tester->assert_true(tester,(clone->destroy(other2) == SUCCESS), "destroy call check");
-       tester->assert_true(tester,(clone->destroy(other3) == SUCCESS), "destroy call check");
-       tester->assert_true(tester,(clone->destroy(other4) == SUCCESS), "destroy call check");
+       tester->assert_true(tester,(other1->destroy(other1) == SUCCESS), "destroy call check");
+       tester->assert_true(tester,(other2->destroy(other2) == SUCCESS), "destroy call check");
+       tester->assert_true(tester,(other3->destroy(other3) == SUCCESS), "destroy call check");
+       tester->assert_true(tester,(other4->destroy(other4) == SUCCESS), "destroy call check");
 }
index facbe7d..1981378 100644 (file)
@@ -69,7 +69,7 @@ void test_ike_sa_manager(tester_t *tester)
        
        td.tester = tester;
        td.isam = ike_sa_manager_create();
-       tester->assert_true(tester, (status == SUCCESS), "ike_sa_manager creation");
+       tester->assert_true(tester, (td.isam != NULL), "ike_sa_manager creation");