From aa1c86f95e762a75bbdca7c51d586e12d01a2f91 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 18 Sep 2018 08:01:52 +0000 Subject: [PATCH] ts: flush stdout/stderr before and after test code run --- modules/ts/include/opencv2/ts/ts_ext.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp index 265db94123..863978bd56 100644 --- a/modules/ts/include/opencv2/ts/ts_ext.hpp +++ b/modules/ts/include/opencv2/ts/ts_ext.hpp @@ -24,10 +24,13 @@ extern int testThreads; #define CV__TEST_INIT \ CV__TEST_NAMESPACE_CHECK \ + fflush(stdout); fflush(stderr); \ cv::ipp::setIppStatus(0); \ cv::theRNG().state = cvtest::param_seed; \ cv::setNumThreads(cvtest::testThreads); -#define CV__TEST_CLEANUP ::cvtest::checkIppStatus(); +#define CV__TEST_CLEANUP \ + fflush(stdout); fflush(stderr); \ + ::cvtest::checkIppStatus(); #define CV__TEST_BODY_IMPL(name) \ { \ CV__TRACE_APP_FUNCTION_NAME(name); \