mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
ts: move message about misused 'optional' under the configuration parameter
This commit is contained in:
parent
8128f6284a
commit
ac30620344
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user