[issue type] : bug fix
Fix test case for object detection task group. In case of using
async API, destroy API can be called prior to exiting from waitforOutputQueue
function of AsyncManager class, and it can return a invalid operation exception.
Therefore, make sure to check the invalid operation exception so that
test case can be existed from user thread loop correctly.
Change-Id: I654a7123d6c88f40e6a17e55c2e374ff6c685017
Signed-off-by: Inki Dae <inki.dae@samsung.com>
unsigned int number_of_objects;
int ret = mv_object_detection_get_result_count(handle, &number_of_objects);
+ if (ret == MEDIA_VISION_ERROR_INVALID_OPERATION)
+ break;
+
ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE);
for (unsigned int idx = 0; idx < number_of_objects; ++idx) {
unsigned int number_of_objects;
int ret = mv_face_detection_get_result_count(handle, &number_of_objects);
+ if (ret == MEDIA_VISION_ERROR_INVALID_OPERATION)
+ break;
+
ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE);
for (unsigned int idx = 0; idx < number_of_objects; ++idx) {