Merge "test_utils.c: Skip test adsi_loaded_test if module not loaded." into 16

This commit is contained in:
Friendly Automation 2019-09-10 08:37:07 -05:00 committed by Gerrit Code Review
commit c4cefb8073
1 changed files with 5 additions and 0 deletions

View File

@ -343,6 +343,11 @@ AST_TEST_DEFINE(adsi_loaded_test)
break;
}
if (!ast_module_check("res_adsi.so")) {
ast_test_status_update(test, "This test skipped because deprecated module res_adsi.so is not built by default.\n");
return AST_TEST_PASS;
}
if (!(c = ast_dummy_channel_alloc())) {
return AST_TEST_FAIL;
}