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);
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)
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)