From cf71ff084503dccd563a926789f589d0089de29d Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Mon, 14 Oct 2013 17:15:40 +0400 Subject: [PATCH] Record OpenCV build type among the test properties. Because apparently I love running performance tests for debug builds. --- modules/ts/src/ts_func.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ts/src/ts_func.cpp b/modules/ts/src/ts_func.cpp index 38a23706dd..5900637c33 100644 --- a/modules/ts/src/ts_func.cpp +++ b/modules/ts/src/ts_func.cpp @@ -2965,6 +2965,16 @@ void printVersionInfo(bool useStdOut) if(useStdOut) std::cout << "Inner VCS version: " << ver << std::endl; } + const char * build_type = +#ifdef _DEBUG + "debug"; +#else + "release"; +#endif + + ::testing::Test::RecordProperty("cv_build_type", build_type); + if (useStdOut) std::cout << "Build type: " << build_type << std::endl; + const char* parallel_framework = currentParallelFramework(); if (parallel_framework) {