From: Junseok, Kim Date: Fri, 10 Apr 2020 07:49:35 +0000 (+0900) Subject: [UTC][tzsh-quickpanel][Non-ACR][Don't assert if there're no quickpanel service] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ee35de9eb69cdb33de04df5479b2f380ee9ba00;p=test%2Ftct%2Fnative%2Fapi.git [UTC][tzsh-quickpanel][Non-ACR][Don't assert if there're no quickpanel service] Change-Id: Icbaafcfb1cf22b674d83aee4f774f63ca9f6812f --- diff --git a/src/utc/tzsh-quickpanel/utc-tzsh-quickpanel.c b/src/utc/tzsh-quickpanel/utc-tzsh-quickpanel.c index c577cc450..506874ade 100755 --- a/src/utc/tzsh-quickpanel/utc-tzsh-quickpanel.c +++ b/src/utc/tzsh-quickpanel/utc-tzsh-quickpanel.c @@ -640,13 +640,22 @@ int utc_tzsh_quickpanel_scrollable_state_set_p1(void) assert_neq(qp, NULL); ret = tzsh_quickpanel_scrollable_state_set(qp, TZSH_QUICKPANEL_STATE_SCROLLABLE_SET); - assert_eq(ret, TZSH_ERROR_NONE); + if (ret != TZSH_ERROR_NO_SERVICE) + assert_eq(ret, TZSH_ERROR_NONE); + else + assert_eq(ret, TZSH_ERROR_NO_SERVICE); ret = tzsh_quickpanel_scrollable_state_set(qp, TZSH_QUICKPANEL_STATE_SCROLLABLE_UNSET); - assert_eq(ret, TZSH_ERROR_NONE); + if (ret != TZSH_ERROR_NO_SERVICE) + assert_eq(ret, TZSH_ERROR_NONE); + else + assert_eq(ret, TZSH_ERROR_NO_SERVICE); ret = tzsh_quickpanel_scrollable_state_set(qp, TZSH_QUICKPANEL_STATE_SCROLLABLE_RETAIN); - assert_eq(ret, TZSH_ERROR_NONE); + if (ret != TZSH_ERROR_NO_SERVICE) + assert_eq(ret, TZSH_ERROR_NONE); + else + assert_eq(ret, TZSH_ERROR_NO_SERVICE); // cleanup resource tzsh_quickpanel_destroy(qp); @@ -695,7 +704,10 @@ int utc_tzsh_quickpanel_scrollable_state_get_p1(void) assert_neq(qp, NULL); ret = tzsh_quickpanel_scrollable_state_set(qp, TZSH_QUICKPANEL_STATE_SCROLLABLE_SET); - assert_eq(ret, TZSH_ERROR_NONE); + if (ret != TZSH_ERROR_NO_SERVICE) + assert_eq(ret, TZSH_ERROR_NONE); + else + assert_eq(ret, TZSH_ERROR_NO_SERVICE); ret = tzsh_quickpanel_scrollable_state_get(qp, &scrollable); if (ret != TZSH_ERROR_NO_SERVICE) @@ -738,7 +750,10 @@ int utc_tzsh_quickpanel_scrollable_state_get_p2(void) assert_neq(qp, NULL); ret = tzsh_quickpanel_scrollable_state_set(qp, TZSH_QUICKPANEL_STATE_SCROLLABLE_UNSET); - assert_eq(ret, TZSH_ERROR_NONE); + if (ret != TZSH_ERROR_NO_SERVICE) + assert_eq(ret, TZSH_ERROR_NONE); + else + assert_eq(ret, TZSH_ERROR_NO_SERVICE); ret = tzsh_quickpanel_scrollable_state_get(qp, &state); if (ret != TZSH_ERROR_NO_SERVICE)