Merge "Remove redundant module checks and references."

This commit is contained in:
Jenkins2
2018-01-29 12:39:34 -06:00
committed by Gerrit Code Review
103 changed files with 143 additions and 760 deletions

View File

@@ -376,8 +376,6 @@ AST_TEST_DEFINE(scheduler_policy)
static int load_module(void)
{
CHECK_PJSIP_MODULE_LOADED();
AST_TEST_REGISTER(serialized_scheduler);
AST_TEST_REGISTER(unserialized_scheduler);
AST_TEST_REGISTER(scheduler_cleanup);

View File

@@ -179,13 +179,11 @@ static int unload_module(void)
AST_TEST_UNREGISTER(app_invoke_dne);
AST_TEST_UNREGISTER(app_invoke_one);
AST_TEST_UNREGISTER(app_replaced);
stasis_app_unref();
return 0;
}
static int load_module(void)
{
stasis_app_ref();
AST_TEST_REGISTER(app_replaced);
AST_TEST_REGISTER(app_invoke_one);
AST_TEST_REGISTER(app_invoke_dne);

View File

@@ -391,7 +391,7 @@ AST_TEST_DEFINE(agi_loaded_test)
}
#endif
ast_agi_unregister(ast_module_info->self, &noop_command);
ast_agi_unregister(&noop_command);
return res;
}