[UTC][media-vision][Non-ACR] check error value correctly 42/278542/1
authorInki Dae <inki.dae@samsung.com>
Thu, 21 Jul 2022 23:48:03 +0000 (08:48 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 21 Jul 2022 23:48:03 +0000 (08:48 +0900)
mv_barcode_detect function called in utc_mediavision_mv_barcode_detect_n3
test case calls calls convertSourceMV2GrayCV function internally, and this
function returns MEDIA_VISION_COLORSPACE_INVALID error value if color space
value is 0 of mv_source. However, the test case checks if returned error
value is MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT or not. So this patch
makes correct error value to be checked.

Change-Id: Ib53615a9b21879e475de7bbf9a5a35b9a21e2c33
Signed-off-by: Inki Dae <inki.dae@samsung.com>
src/utc/capi-media-vision/utc-mv_barcode.c

index e7a1c45773135774e682b377219aec7d3ec19585..79fd668d276eea265bb3839bdabb95aed110c066 100755 (executable)
@@ -1436,7 +1436,7 @@ int utc_mediavision_mv_barcode_detect_n3(void)
 
     printf("Colorspace of the media source is "
             "MEDIA_VISION_COLORSPACE_INVALID (i.e. not supported)\n");
-    assert_eq(MEDIA_VISION_ERROR_NOT_SUPPORTED_FORMAT,
+    assert_eq(MEDIA_VISION_ERROR_INVALID_PARAMETER,
               mv_barcode_detect(media_source, engine_config, roi,
                                 barcode_detected_n_cb, NULL));
     printf("PASSED\n");