File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments