diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-09-27 10:45:32 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2017-09-27 10:45:32 +0900 |
commit | ac279813c1374fd48cf7a9a95bfb56f08abde403 (patch) | |
tree | 73be10fa685eea3b015eccdfce529986e66571b8 /src | |
parent | 9720689dae295866c934021aa60ba47092ef3821 (diff) | |
download | ui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.tar.gz ui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.tar.bz2 ui-gadget-1-ac279813c1374fd48cf7a9a95bfb56f08abde403.zip |
Exclude some lines from lcov
Change-Id: I177f03a06b906f5dc896bd3b8fc22bb30ff37a77
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.c | 6 | ||||
-rw-r--r-- | src/ug.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/engine.c b/src/engine.c index a208ceb..08c5a6d 100644 --- a/src/engine.c +++ b/src/engine.c @@ -47,14 +47,18 @@ struct ug_engine *ug_engine_load() engine = calloc(1, sizeof(struct ug_engine)); if (!engine) { + /* LCOV_EXCL_START */ errno = ENOMEM; return NULL; + /* LCOV_EXCL_STOP */ } handle = dlopen(UG_LIB_DIR"/libui-gadget-1-efl-engine.so", RTLD_LAZY); if (!handle) { + /* LCOV_EXCL_START */ _ERR("dlopen failed: %s", dlerror()); goto engine_free; + /* LCOV_EXCL_STOP */ } engine_init = dlsym(handle, UG_ENGINE_INIT_SYM); @@ -69,12 +73,14 @@ struct ug_engine *ug_engine_load() engine->handle = handle; return engine; +/* LCOV_EXCL_START */ engine_dlclose: dlclose(handle); engine_free: free(engine); return NULL; +/* LCOV_EXCL_STOP */ } /* LCOV_EXCL_START */ @@ -33,6 +33,7 @@ #define UG_API __attribute__ ((visibility("default"))) #endif +/* LCOV_EXCL_START */ ui_gadget_h ug_root_create(void) { ui_gadget_h ug; @@ -49,7 +50,9 @@ ui_gadget_h ug_root_create(void) return ug; } +/* LCOV_EXCL_STOP */ +/* LCOV_EXCL_START */ int ug_free(ui_gadget_h ug) { if (!ug) { @@ -72,6 +75,7 @@ int ug_free(ui_gadget_h ug) ug = NULL; return 0; } +/* LCOV_EXCL_STOP */ UG_API ui_gadget_h ug_create(ui_gadget_h parent, const char *name, |