diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-12-05 18:56:22 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-12-05 18:56:22 +0000 |
commit | c81eb6e77ca17136ddff82fe93433007f9b93681 (patch) | |
tree | d299af38a1439fe661c43ef4bce5a1dd2cced262 /Source/charon/testcases/ike_sa_manager_test.c | |
parent | 7ba3f707df54449e3119fb50e684862898aa998c (diff) | |
download | strongswan-c81eb6e77ca17136ddff82fe93433007f9b93681.tar.bz2 strongswan-c81eb6e77ca17136ddff82fe93433007f9b93681.tar.xz |
- Implemented and tested eap_payload_t
Diffstat (limited to 'Source/charon/testcases/ike_sa_manager_test.c')
-rw-r--r-- | Source/charon/testcases/ike_sa_manager_test.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Source/charon/testcases/ike_sa_manager_test.c b/Source/charon/testcases/ike_sa_manager_test.c index b6fcdc4df..29f6a46a2 100644 --- a/Source/charon/testcases/ike_sa_manager_test.c +++ b/Source/charon/testcases/ike_sa_manager_test.c @@ -158,27 +158,11 @@ void test_ike_sa_manager(tester_t *tester) ike_sa_id = ike_sa_id_create(initiator, responder, TRUE); status = td.isam->checkout(td.isam, ike_sa_id, &ike_sa); - tester->assert_true(tester, (status == SUCCESS), "checkout unexisting IKE_SA 2"); - for (i = 0; i < thread_count; i++) - { - if (pthread_create(&threads[i], NULL, (void*(*)(void*))test2_thread, (void*)ike_sa_id)) - { - /* failed, decrease list */ - thread_count--; - i--; - } - } + tester->assert_false(tester, (status == SUCCESS), "checkout unexisting IKE_SA 2"); + /* let them go acquiring */ sleep(1); - /* this time, we delete the ike_sa while its checked out */ - td.isam->checkin_and_delete(td.isam, ike_sa); - tester->assert_true(tester, (status == SUCCESS), "delete IKE_SA by SA"); - - for (i = 0; i < thread_count; i++) - { - pthread_join(threads[i], NULL); - } ike_sa_id->destroy(ike_sa_id); |