Merge pull request #15263 from alalek:videoio_skip_msmf_tests3

pull/15292/head
Alexander Alekhin 6 years ago
commit 596b8a5d06
  1. 4
      modules/videoio/test/test_video_io.cpp

@ -83,7 +83,7 @@ public:
{ {
if (!isBackendAvailable(apiPref, cv::videoio_registry::getStreamBackends())) if (!isBackendAvailable(apiPref, cv::videoio_registry::getStreamBackends()))
throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref)); throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref));
if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265")) if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265" || ext == "mpg"))
throw SkipTestException("Unstable MSMF test"); throw SkipTestException("Unstable MSMF test");
VideoCapture cap; VideoCapture cap;
ASSERT_NO_THROW(cap.open(video_file, apiPref)); ASSERT_NO_THROW(cap.open(video_file, apiPref));
@ -170,7 +170,7 @@ public:
{ {
if (!isBackendAvailable(apiPref, cv::videoio_registry::getStreamBackends())) if (!isBackendAvailable(apiPref, cv::videoio_registry::getStreamBackends()))
throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref)); throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref));
if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265")) if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265" || ext == "mpg"))
throw SkipTestException("Unstable MSMF test"); throw SkipTestException("Unstable MSMF test");
VideoCapture cap; VideoCapture cap;
EXPECT_NO_THROW(cap.open(video_file, apiPref)); EXPECT_NO_THROW(cap.open(video_file, apiPref));

Loading…
Cancel
Save