From a4b4432015113dfb81259d09a2ccd7c180fbe101 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 5 Aug 2019 19:13:17 +0300 Subject: [PATCH] videoio(test): skip unstable MSMF tests (2) --- modules/videoio/test/test_video_io.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/videoio/test/test_video_io.cpp b/modules/videoio/test/test_video_io.cpp index a660058..ce4523a 100644 --- a/modules/videoio/test/test_video_io.cpp +++ b/modules/videoio/test/test_video_io.cpp @@ -83,6 +83,8 @@ public: { if (!isBackendAvailable(apiPref, cv::videoio_registry::getStreamBackends())) throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref)); + if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265")) + throw SkipTestException("Unstable MSMF test"); VideoCapture cap; ASSERT_NO_THROW(cap.open(video_file, apiPref)); if (!cap.isOpened()) -- 2.7.4