From df5a7c8ee9d877655a6981dd263c0f303e239b51 Mon Sep 17 00:00:00 2001 From: MYLS Date: Sat, 25 Jun 2016 02:24:33 +0800 Subject: [PATCH] build again for OpenCL. I could not find the cause of the error: ``` C:\builds_ocv\precommit_opencl\opencv\modules\ts\src\ts_perf.cpp(361): error: The difference between expect_max and actual_max is 8445966.0000002384, which exceeds eps, where expect_max evaluates to 0.9999997615814209, actual_max evaluates to 8445967, and eps evaluates to 1.0000000000000001e-005. Argument "dst0" has unexpected maximal value ``` Hope this is a false alarm. --- modules/core/test/test_io.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/test/test_io.cpp b/modules/core/test/test_io.cpp index dcb25d72e..1367776f2 100644 --- a/modules/core/test/test_io.cpp +++ b/modules/core/test/test_io.cpp @@ -580,7 +580,7 @@ TEST(Core_InputOutput, FileStorageKey) TEST(Core_InputOutput, filestorage_yml_compatibility) { - //EXPECT_ANY_THROW(); + // TODO: } class CV_Base64IOTest : public cvtest::BaseTest @@ -617,7 +617,7 @@ protected: _2d_out = cv::Mat(100, 100, CV_8UC3, cvScalar(1U, 2U, 127U)); for (int i = 0; i < _2d_out.rows; ++i) for (int j = 0; j < _2d_out.cols; ++j) - _2d_out.at(i, j)[1] = i % 256; + _2d_out.at(i, j)[1] = (i + j) % 256; /* 4d mat */ const int Size[] = {4, 4, 4, 4}; @@ -677,7 +677,7 @@ protected: } for (int i = 0; i < 1000; i++) { - // TODO: Solve this bug + // TODO: Solve this bug in `cvReadRawData` //EXPECT_EQ(rawdata[i].u1, 1); //EXPECT_EQ(rawdata[i].u2, 2); //EXPECT_EQ(rawdata[i].i1, 1); @@ -717,10 +717,10 @@ protected: TEST(Core_InputOutput, filestorage_yml_base64) { - CV_Base64IOTest test("base64_test.yml"); test.safe_run(); + CV_Base64IOTest test("base64_test_tmp_file.yml"); test.safe_run(); } TEST(Core_InputOutput, filestorage_xml_base64) { - CV_Base64IOTest test("base64_test.xml"); test.safe_run(); + CV_Base64IOTest test("base64_test_tmp_file.xml"); test.safe_run(); }