stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=817e1460708b451d14a61a76783d05e2c372787c
commit 817e1460708b451d14a61a76783d05e2c372787c Author: Stefan Schmidt <[email protected]> Date: Tue Jun 9 15:17:36 2020 +0200 tests: eina: check return of eina_module_load and unload These could fail as well. Check in testsuite. CID: 1400961 Reviewed-by: Christopher Michael <[email protected]> Differential Revision: https://phab.enlightenment.org/D11959 --- src/tests/eina/eina_test_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/eina/eina_test_module.c b/src/tests/eina/eina_test_module.c index 68ad598899..44b2389e73 100644 --- a/src/tests/eina/eina_test_module.c +++ b/src/tests/eina/eina_test_module.c @@ -32,14 +32,14 @@ static Eina_Bool list_cb(Eina_Module *m, void *data EINA_UNUSED) const char *file; /* the reference count */ - eina_module_load(m); + fail_if(!eina_module_load(m)); /* get */ sym = eina_module_symbol_get(m, "dummy_symbol"); fail_if(!sym); fail_if(*sym != 0xbad); file = eina_module_file_get(m); fail_if(!file); - eina_module_unload(m); + fail_if(eina_module_unload(m)); return EINA_TRUE; } --
