From 0bb84096a2a80472d644b31e5d7b1f8b5a2b9a1a Mon Sep 17 00:00:00 2001 From: Anna Khakimova Date: Sun, 4 Sep 2022 18:06:37 +0300 Subject: [PATCH] Fix tolerance for Preproc4lpiTest set --- modules/gapi/test/gapi_fluid_resize_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/gapi/test/gapi_fluid_resize_test.cpp b/modules/gapi/test/gapi_fluid_resize_test.cpp index 0ec00c8e0b..79fb416803 100644 --- a/modules/gapi/test/gapi_fluid_resize_test.cpp +++ b/modules/gapi/test/gapi_fluid_resize_test.cpp @@ -829,7 +829,11 @@ TEST_P(Preproc4lpiTest, Test) cv::cvtColor(in_mat, rgb_mat, cv::COLOR_YUV2RGB_NV12); cv::resize(rgb_mat, out_mat_ocv, out_sz, 0, 0, interp); +#if defined(__arm__) || defined(__aarch64__) + EXPECT_GE(2, cvtest::norm(out_mat(roi), out_mat_ocv(roi), NORM_INF)); +#else EXPECT_EQ(0, cvtest::norm(out_mat(roi), out_mat_ocv(roi), NORM_INF)); +#endif } INSTANTIATE_TEST_CASE_P(Fluid, Preproc4lpiTest,