Skip some GAPI tests if VideoCapture is not capable to playback video.
This commit is contained in:
parent
c3e8a82c9c
commit
a17d1843fb
@ -730,6 +730,8 @@ TEST(GAPI_Streaming_Types, OutputScalar)
|
|||||||
|
|
||||||
cv::VideoCapture cap;
|
cv::VideoCapture cap;
|
||||||
cap.open(video_path);
|
cap.open(video_path);
|
||||||
|
if (!cap.isOpened())
|
||||||
|
throw SkipTestException("Video file can not be opened");
|
||||||
|
|
||||||
cv::Mat tmp;
|
cv::Mat tmp;
|
||||||
cv::Scalar out_scl;
|
cv::Scalar out_scl;
|
||||||
@ -774,6 +776,8 @@ TEST(GAPI_Streaming_Types, OutputVector)
|
|||||||
|
|
||||||
cv::VideoCapture cap;
|
cv::VideoCapture cap;
|
||||||
cap.open(video_path);
|
cap.open(video_path);
|
||||||
|
if (!cap.isOpened())
|
||||||
|
throw SkipTestException("Video file can not be opened");
|
||||||
|
|
||||||
cv::Mat tmp;
|
cv::Mat tmp;
|
||||||
std::vector<int> ref_vec;
|
std::vector<int> ref_vec;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user