Commit 00830d9d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #16385 from alalek:ts_update_optional_message

parents 4e577b8d ac306203
...@@ -1008,10 +1008,10 @@ static std::string findData(const std::string& relative_path, bool required, boo ...@@ -1008,10 +1008,10 @@ static std::string findData(const std::string& relative_path, bool required, boo
CHECK_FILE_WITH_PREFIX(prefix, result_); CHECK_FILE_WITH_PREFIX(prefix, result_);
if (!required && !result_.empty()) if (!required && !result_.empty())
{ {
std::cout << "TEST ERROR: Don't use 'optional' findData() for " << relative_path << std::endl;
static bool checkOptionalFlag = cv::utils::getConfigurationParameterBool("OPENCV_TEST_CHECK_OPTIONAL_DATA", false); static bool checkOptionalFlag = cv::utils::getConfigurationParameterBool("OPENCV_TEST_CHECK_OPTIONAL_DATA", false);
if (checkOptionalFlag) if (checkOptionalFlag)
{ {
std::cout << "TEST ERROR: Don't use 'optional' findData() for " << relative_path << std::endl;
CV_Assert(required || result_.empty()); CV_Assert(required || result_.empty());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment