Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip some GAPI tests if VideoCapture is not capable to playback video #17471

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/gapi/test/streaming/gapi_streaming_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ TEST(GAPI_Streaming_Types, OutputScalar)

cv::VideoCapture cap;
cap.open(video_path);
if (!cap.isOpened())
throw SkipTestException("Video file can not be opened");

cv::Mat tmp;
cv::Scalar out_scl;
Expand Down Expand Up @@ -774,6 +776,8 @@ TEST(GAPI_Streaming_Types, OutputVector)

cv::VideoCapture cap;
cap.open(video_path);
if (!cap.isOpened())
throw SkipTestException("Video file can not be opened");

cv::Mat tmp;
std::vector<int> ref_vec;
Expand Down