Fix sanity checks in highgui module
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 9 Oct 2012 15:39:03 +0000 (19:39 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 9 Oct 2012 15:39:03 +0000 (19:39 +0400)
modules/highgui/perf/perf_input.cpp
modules/highgui/perf/perf_output.cpp

index 4215895..79f864c 100644 (file)
@@ -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);
 }
index e7ddaa6..851a2a6 100644 (file)
@@ -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);
 }