}
pos1 = buildInfo.find("inner version");
- pos2 = buildInfo.find("\n", pos1);\
+ pos2 = buildInfo.find('\n', pos1);
if(pos1 != std::string::npos && pos2 != std::string::npos)
{
- std::string ver( buildInfo.substr(pos1, pos2-pos1) );
- ::testing::Test::RecordProperty("inner_version", ver);
- if(useStdOut) std::cout << ver << std::endl;
+ size_t value_start = buildInfo.rfind(' ', pos2) + 1;
+ std::string ver( buildInfo.substr(value_start, pos2 - value_start) );
+ ::testing::Test::RecordProperty("cv_inner_vcs_version", ver);
+ if(useStdOut) std::cout << "Inner VCS version: " << ver << std::endl;
}
- #ifdef CV_PARALLEL_FRAMEWORK
- ::testing::Test::RecordProperty("cv_parallel_framework", CV_PARALLEL_FRAMEWORK);
- if (useStdOut)
- {
- std::cout << "Parallel framework: " << CV_PARALLEL_FRAMEWORK << std::endl;
+ const char* parallel_framework = currentParallelFramework();
+
+ if (parallel_framework) {
+ ::testing::Test::RecordProperty("cv_parallel_framework", parallel_framework);
+ if (useStdOut) std::cout << "Parallel framework: " << parallel_framework << std::endl;
}
- #endif
std::string cpu_features;