From: Jiyong Min Date: Wed, 26 Oct 2016 06:10:27 +0000 (+0900) Subject: [UTC][media-content][Non-ACR][Fixed TC fail for vision.face_recognition feature not... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd4b6146399e46bec65a40d093f761a965af7fb1;p=test%2Ftct%2Fnative%2Fapi.git [UTC][media-content][Non-ACR][Fixed TC fail for vision.face_recognition feature not supported] Change-Id: I451760d0accf7ae1d3717773ce3af73ec5e5359b Signed-off-by: Jiyong Min --- diff --git a/src/utc/media-content/utc-media-info.c b/src/utc/media-content/utc-media-info.c index 0b2e28b..0c1c2ef 100755 --- a/src/utc/media-content/utc-media-info.c +++ b/src/utc/media-content/utc-media-info.c @@ -2485,7 +2485,11 @@ int utc_media_info_start_face_detection_n(void) int ret = MEDIA_CONTENT_ERROR_NONE; ret = media_info_start_face_detection(NULL, face_detection_cb, NULL); - assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER); + if (!g_isFaceRecognitionSupported) { + assert_eq(ret, MEDIA_CONTENT_ERROR_NOT_SUPPORTED); + } else { + assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER); + } return 0; } @@ -4696,7 +4700,11 @@ int utc_media_info_cancel_face_detection_n(void) int ret = MEDIA_CONTENT_ERROR_NONE; ret = media_info_cancel_face_detection(NULL); - assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER); + if (!g_isFaceRecognitionSupported) { + assert_eq(ret, MEDIA_CONTENT_ERROR_NOT_SUPPORTED); + } else { + assert_eq(ret, MEDIA_CONTENT_ERROR_INVALID_PARAMETER); + } return 0; }