]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
unit-tests: Don't unload plugins before calling libcharon_deinit()
authorTobias Brunner <tobias@strongswan.org>
Thu, 12 May 2016 11:49:11 +0000 (13:49 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:48:01 +0000 (18:48 +0200)
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.

src/libcharon/tests/libcharon_tests.c

index 4692c3094a76e792b19bc6676c2bdffb710549dd..e25e5434f7e2e1da0b155360ed62f0a2ff6e7b76 100644 (file)
@@ -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;