From: Inki Dae Date: Fri, 13 Dec 2024 09:11:46 +0000 (+0900) Subject: test: fix a build error X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=626de7e64777c97affc6f30302da3d9f1db7313f;p=platform%2Fcore%2Fapi%2Fsingleo.git test: fix a build error Change-Id: I69cf2895e851afb2fb7b8ce17e802fcca6c24db0 Signed-off-by: Inki Dae --- diff --git a/test/services/test_focusfinder_on_screen.cpp b/test/services/test_focusfinder_on_screen.cpp index da53c5e..8deefe5 100644 --- a/test/services/test_focusfinder_on_screen.cpp +++ b/test/services/test_focusfinder_on_screen.cpp @@ -30,7 +30,7 @@ struct Context { singleo_service_h handle {}; }; -static bool focusfinder_callback(void *user_data) +static void focusfinder_callback(void *user_data) { Context *context = static_cast(user_data); singleo_service_h handle = static_cast(context->handle); @@ -41,17 +41,12 @@ static bool focusfinder_callback(void *user_data) unsigned int cnt = 1; int ret = singleo_service_get_result_cnt(handle, &cnt); - if (ret != SINGLEO_ERROR_NONE) - break; - ASSERT_EQ(ret, SINGLEO_ERROR_NONE); cout << "cnt = " << cnt << " frame number = " << frame_number << endl; if (++frame_number > 10) is_loop_exit = true; } - - return false; } static void user_callback(unsigned char *buffer, unsigned int width, unsigned int height, unsigned int bytes_per_pixel,