forked from enlightenment/efl
tests: eina: check return of eina_module_load and unload
These could fail as well. Check in testsuite. CID: 1400961 Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D11959
This commit is contained in:
parent
b209bb051b
commit
817e146070
|
@ -32,14 +32,14 @@ static Eina_Bool list_cb(Eina_Module *m, void *data EINA_UNUSED)
|
||||||
const char *file;
|
const char *file;
|
||||||
|
|
||||||
/* the reference count */
|
/* the reference count */
|
||||||
eina_module_load(m);
|
fail_if(!eina_module_load(m));
|
||||||
/* get */
|
/* get */
|
||||||
sym = eina_module_symbol_get(m, "dummy_symbol");
|
sym = eina_module_symbol_get(m, "dummy_symbol");
|
||||||
fail_if(!sym);
|
fail_if(!sym);
|
||||||
fail_if(*sym != 0xbad);
|
fail_if(*sym != 0xbad);
|
||||||
file = eina_module_file_get(m);
|
file = eina_module_file_get(m);
|
||||||
fail_if(!file);
|
fail_if(!file);
|
||||||
eina_module_unload(m);
|
fail_if(eina_module_unload(m));
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue