mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
videoio(test): skip unstable MSMF tests (2)
This commit is contained in:
parent
365323afec
commit
a4b4432015
@ -83,6 +83,8 @@ 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"))
|
||||||
|
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));
|
||||||
if (!cap.isOpened())
|
if (!cap.isOpened())
|
||||||
|
Loading…
Reference in New Issue
Block a user