summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-06-09 15:17:36 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-10 10:08:02 +0200
commit817e1460708b451d14a61a76783d05e2c372787c (patch)
tree4a6269694cad619aeec28bfe8193e48e034be563
parentb209bb051b16cfb5b20ac6070cd3400c46996388 (diff)
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
-rw-r--r--src/tests/eina/eina_test_module.c4
1 files 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)
32 const char *file; 32 const char *file;
33 33
34 /* the reference count */ 34 /* the reference count */
35 eina_module_load(m); 35 fail_if(!eina_module_load(m));
36 /* get */ 36 /* get */
37 sym = eina_module_symbol_get(m, "dummy_symbol"); 37 sym = eina_module_symbol_get(m, "dummy_symbol");
38 fail_if(!sym); 38 fail_if(!sym);
39 fail_if(*sym != 0xbad); 39 fail_if(*sym != 0xbad);
40 file = eina_module_file_get(m); 40 file = eina_module_file_get(m);
41 fail_if(!file); 41 fail_if(!file);
42 eina_module_unload(m); 42 fail_if(eina_module_unload(m));
43 43
44 return EINA_TRUE; 44 return EINA_TRUE;
45} 45}