From 8ebd04cbf9a25cc54c20097a267595f922279a5f Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 9 Oct 2012 19:39:03 +0400 Subject: [PATCH] Fix sanity checks in highgui module --- modules/highgui/perf/perf_input.cpp | 3 ++- modules/highgui/perf/perf_output.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/highgui/perf/perf_input.cpp b/modules/highgui/perf/perf_input.cpp index 4215895..79f864c 100644 --- a/modules/highgui/perf/perf_input.cpp +++ b/modules/highgui/perf/perf_input.cpp @@ -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); } diff --git a/modules/highgui/perf/perf_output.cpp b/modules/highgui/perf/perf_output.cpp index e7ddaa6..851a2a6 100644 --- a/modules/highgui/perf/perf_output.cpp +++ b/modules/highgui/perf/perf_output.cpp @@ -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); } -- 2.7.4