]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test_utils.c: Skip test adsi_loaded_test if module not loaded.
authorChris-Savinovich <csavinovich@digium.com>
Wed, 4 Sep 2019 21:19:55 +0000 (16:19 -0500)
committerChristian Savinovich <csavinovich@digium.com>
Wed, 4 Sep 2019 21:49:49 +0000 (16:49 -0500)
commita321225fa443d1fb823ad992d72c2ef825df67ef
treee48758ae7ea8b20282c3207b05f2f4cda45db2ac
parent260969f5ad6e10de40d63c5a0fa8271aaead8328
test_utils.c: Skip test adsi_loaded_test if module not loaded.

Module res_adsi.so is deprecated, therefore it does not load by default.
Module not loaded causes it to yield a FAIL when tested by tests/test_utils.c.
This fix checks if the corresponding module is loaded at the start of the test,
and if not, it passes the test and exits with a message.

This fix is applied to all versions where the module is marked deprecated.

Change-Id: I52be64c8f6af222e15148a856d1f10cb113e1e94
tests/test_utils.c