From 48ad44cb5e103b866846530ace3cc06fd15d7eff Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 4 Jul 2018 13:51:53 +0900 Subject: [PATCH] Exclude coverage for hid-agent hid-agent - Line Cov: 89.7%, Func Cov: 100%) Change-Id: I18009c78521e56fc3739fe8ef470d23abf430758 Signed-off-by: DoHyun Pyun --- hid-agent/bluetooth-hid-agent.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hid-agent/bluetooth-hid-agent.c b/hid-agent/bluetooth-hid-agent.c index fcf5e01..8a95260 100644 --- a/hid-agent/bluetooth-hid-agent.c +++ b/hid-agent/bluetooth-hid-agent.c @@ -65,6 +65,7 @@ static int bt_hid_sig_to_handle[] = { SIGABRT, SIGSEGV, SIGTERM }; static void __bt_hid_agent_sigterm_handler(int signo); static GError *__bt_hid_agent_set_error(bt_hid_agent_error_t error); +/* LCOV_EXCL_START */ static void __on_log_glib(const gchar *log_domain, GLogLevelFlags log_level, const gchar *msg, gpointer user_data) { @@ -775,9 +776,7 @@ static void __bt_hid_agent_dbus_deinit(void) gdbus_conn = NULL; } } - - - +/* LCOV_EXCL_STOP */ bt_hid_agent_error_t _bt_hid_disconnect_profile(void) { @@ -792,6 +791,7 @@ bt_hid_agent_error_t _bt_hid_disconnect_profile(void) return BT_HID_AGENT_ERROR_INTERNAL; } + /* LCOV_EXCL_START */ g_dbus_proxy_call(proxy, "DisconnectProfile", g_variant_new("(s)", HID_DEVICE_UUID), G_DBUS_CALL_FLAGS_NONE, 2000, @@ -800,8 +800,10 @@ bt_hid_agent_error_t _bt_hid_disconnect_profile(void) FN_END; return BT_HID_AGENT_ERROR_NONE; + /* LCOV_EXCL_STOP */ } +/* LCOV_EXCL_START */ int main(void) { int i; @@ -837,4 +839,4 @@ int main(void) INFO_C("### Terminating Bluetooth HID agent"); return 0; } - +/* LCOV_EXCL_STOP */ -- 2.7.4