From: Tobias Brunner Date: Thu, 12 May 2016 11:49:11 +0000 (+0200) Subject: unit-tests: Don't unload plugins before calling libcharon_deinit() X-Git-Tag: 5.5.0dr1~4^2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b50e6fc3ea080e552b6a43b2e7e766a77ab5c0f;p=thirdparty%2Fstrongswan.git unit-tests: Don't unload plugins before calling libcharon_deinit() libcharon_deinit() already calls all the functions we called manually. Unloading the plugins will not work if charon->initialize() is called as charon's static plugin features would already be unloaded before the destroyed members are accessed in destroy() to flush them. --- diff --git a/src/libcharon/tests/libcharon_tests.c b/src/libcharon/tests/libcharon_tests.c index 4692c3094a..e25e5434f7 100644 --- a/src/libcharon/tests/libcharon_tests.c +++ b/src/libcharon/tests/libcharon_tests.c @@ -53,9 +53,6 @@ static bool test_runner_init(bool init) } else { - lib->processor->set_threads(lib->processor, 0); - lib->processor->cancel(lib->processor); - lib->plugins->unload(lib->plugins); libcharon_deinit(); } return TRUE;