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.
This commit is contained in:
@@ -53,9 +53,6 @@ static bool test_runner_init(bool init)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lib->processor->set_threads(lib->processor, 0);
|
|
||||||
lib->processor->cancel(lib->processor);
|
|
||||||
lib->plugins->unload(lib->plugins);
|
|
||||||
libcharon_deinit();
|
libcharon_deinit();
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user