mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Fix sanity checks in highgui module
This commit is contained in:
parent
4a53199e7a
commit
8ebd04cbf9
@ -23,5 +23,6 @@ PERF_TEST_P(VideoCapture_Reading, ReadFile,
|
||||
|
||||
TEST_CYCLE() cap.open(filename);
|
||||
|
||||
SANITY_CHECK(cap.isOpened());
|
||||
bool dummy = cap.isOpened();
|
||||
SANITY_CHECK(dummy);
|
||||
}
|
||||
|
@ -25,5 +25,6 @@ PERF_TEST_P(VideoWriter_Writing, WriteFrame,
|
||||
|
||||
TEST_CYCLE() { Mat image = imread(filename, 1); writer << image; }
|
||||
|
||||
SANITY_CHECK(writer.isOpened());
|
||||
bool dummy = writer.isOpened();
|
||||
SANITY_CHECK(dummy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user