Commit 8ebd04cb authored by Andrey Kamaev's avatar Andrey Kamaev

Fix sanity checks in highgui module

parent 4a53199e
...@@ -23,5 +23,6 @@ PERF_TEST_P(VideoCapture_Reading, ReadFile, ...@@ -23,5 +23,6 @@ PERF_TEST_P(VideoCapture_Reading, ReadFile,
TEST_CYCLE() cap.open(filename); 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, ...@@ -25,5 +25,6 @@ PERF_TEST_P(VideoWriter_Writing, WriteFrame,
TEST_CYCLE() { Mat image = imread(filename, 1); writer << image; } TEST_CYCLE() { Mat image = imread(filename, 1); writer << image; }
SANITY_CHECK(writer.isOpened()); bool dummy = writer.isOpened();
SANITY_CHECK(dummy);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment