From be507b20cda0e0c1e59c61213ad30fcbd9174051 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 22 Sep 2015 15:02:43 +0300 Subject: [PATCH] fix perf tests --- modules/ts/src/ts_perf.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/ts/src/ts_perf.cpp b/modules/ts/src/ts_perf.cpp index c9e872b4c5..6201dff7d3 100644 --- a/modules/ts/src/ts_perf.cpp +++ b/modules/ts/src/ts_perf.cpp @@ -819,10 +819,8 @@ void TestBase::Init(const std::vector & availableImpls, param_write_sanity = args.get("perf_write_sanity"); param_verify_sanity = args.get("perf_verify_sanity"); -#ifndef WINRT +#ifdef HAVE_IPP test_ipp_check = !args.get("perf_ipp_check") ? getenv("OPENCV_IPP_CHECK") != NULL : true; -#else - test_ipp_check = false; #endif param_threads = args.get("perf_threads"); #ifdef CV_COLLECT_IMPL_DATA @@ -916,7 +914,7 @@ void TestBase::Init(const std::vector & availableImpls, if (!args.check()) { args.printErrors(); - return; + exit(); } timeLimitDefault = param_time_limit == 0.0 ? 1 : (int64)(param_time_limit * cv::getTickFrequency());