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