@@ -24,12 +24,35 @@ INSTANTIATE_TEST_CASE_P(MathOpTestFluid, MathOpTest,
24
24
cv::Size(128 , 128 )),
25
25
Values(-1 , CV_8U, CV_32F),
26
26
Values(CORE_FLUID),
27
- Values(ADD, SUB, DIV, MUL),
27
+ Values(DIV, MUL),
28
28
testing::Bool(),
29
29
Values(1.0 ),
30
30
testing::Bool()));
31
31
32
- INSTANTIATE_TEST_CASE_P (SubTestFluid, MathOpTest,
32
+ // FIXME: Accuracy test for SUB math operation fails on FullHD and HD CV_16SC1 input cv::Mat,
33
+ // double-presicion input cv::Scalar and CV_32FC1 output cv::Mat on Mac.
34
+ // Accuracy test for ADD math operation fails on HD CV_16SC1 input cv::Mat,
35
+ // double-presicion input cv::Scalar and CV_32FC1 output cv::Mat on Mac.
36
+ // As failures are sporadic, disabling all instantiation cases for SUB and ADD.
37
+ // Github ticket: https://github.com/opencv/opencv/issues/18373.
38
+ INSTANTIATE_TEST_CASE_P (DISABLED_MathOpTestFluid, MathOpTest,
39
+ Combine (Values(CV_8UC3, CV_8UC1, CV_16SC1, CV_32FC1),
40
+ Values(cv::Size(1920 , 1080 ),
41
+ cv::Size(1280 , 720 ),
42
+ cv::Size(640 , 480 ),
43
+ cv::Size(128 , 128 )),
44
+ Values(-1 , CV_8U, CV_32F),
45
+ Values(CORE_FLUID),
46
+ Values(ADD, SUB),
47
+ testing::Bool(),
48
+ Values(1.0 ),
49
+ testing::Bool()));
50
+
51
+ // FIXME: Accuracy test for SUB math operation fails on CV_16SC1 input cv::Mat, double-presicion
52
+ // input cv::Scalar and CV_32FC1 output cv::Mat on Mac.
53
+ // As failures are sporadic, disabling all instantiation cases for SUB operation.
54
+ // Github ticket: https://github.com/opencv/opencv/issues/18373.
55
+ INSTANTIATE_TEST_CASE_P (DISABLED_SubTestFluid, MathOpTest,
33
56
Combine (Values(CV_8UC1, CV_16SC1 , CV_32FC1),
34
57
Values(cv::Size(1280 , 720 ),
35
58
cv::Size(640 , 480 ),
0 commit comments