Skip to content

Commit 7edfb57

Browse files
committed
videoio(test): filter unstable GStreamer tests
- observed on Ubuntu 24.04
1 parent 23fcea0 commit 7edfb57

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

modules/videoio/test/test_video_io.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ class Videoio_Test_Base
4747
throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref));
4848
if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265" || ext == "mpg"))
4949
throw SkipTestException("Unstable MSMF test");
50+
#ifdef __linux__
51+
if (cvtest::skipUnstableTests && apiPref == CAP_GSTREAMER &&
52+
(ext == "avi" || ext == "mkv") &&
53+
(video_file.find("MPEG") != std::string::npos))
54+
{
55+
throw SkipTestException("Unstable GSTREAMER test");
56+
}
57+
#endif
5058
writeVideo();
5159
VideoCapture cap;
5260
ASSERT_NO_THROW(cap.open(video_file, apiPref));
@@ -852,6 +860,13 @@ TEST_P(videowriter_acceleration, write)
852860
std::string backend_name = cv::videoio_registry::getBackendName(backend);
853861
if (!videoio_registry::hasBackend(backend))
854862
throw SkipTestException(cv::String("Backend is not available/disabled: ") + backend_name);
863+
#ifdef __linux__
864+
if (cvtest::skipUnstableTests && backend == CAP_GSTREAMER &&
865+
(extension == "mkv") && (codecid == "MPEG"))
866+
{
867+
throw SkipTestException("Unstable GSTREAMER test");
868+
}
869+
#endif
855870

856871
const Size sz(640, 480);
857872
const int frameNum = 15;

0 commit comments

Comments
 (0)