Ported PR #4187 to master
authorMaksim Shabunin <maksim.shabunin@itseez.com>
Wed, 13 Jul 2016 12:46:48 +0000 (15:46 +0300)
committerMaksim Shabunin <maksim.shabunin@itseez.com>
Wed, 13 Jul 2016 12:46:48 +0000 (15:46 +0300)
modules/calib3d/test/test_chesscorners_timing.cpp

index 61287ab..570c125 100644 (file)
@@ -113,11 +113,7 @@ void CV_ChessboardDetectorTimingTest::run( int start_from )
         if( img2.empty() )
         {
             ts->printf( cvtest::TS::LOG, "one of chessboard images can't be read: %s\n", filename.c_str() );
-            if( max_idx == 1 )
-            {
-                code = cvtest::TS::FAIL_MISSING_TEST_DATA;
-                goto _exit_;
-            }
+            code = cvtest::TS::FAIL_MISSING_TEST_DATA;
             continue;
         }