From a22ee76b451f9cee8acf4f1969344b5f1d35fd4c Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 9 Apr 2018 13:18:33 +0300 Subject: [PATCH] imgcodecs: exclude rle8.bmp from GDAL tests GDAL message: - ERROR 1: The BMP file is probably corrupted or too large. Image width = 480 --- modules/imgcodecs/test/test_grfmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/imgcodecs/test/test_grfmt.cpp b/modules/imgcodecs/test/test_grfmt.cpp index 5cf846de71..88f8501d89 100644 --- a/modules/imgcodecs/test/test_grfmt.cpp +++ b/modules/imgcodecs/test/test_grfmt.cpp @@ -110,7 +110,8 @@ INSTANTIATE_TEST_CASE_P(All, Imgcodecs_FileMode, struct notForGDAL { bool operator()(const string &name) const { const string &ext = name.substr(name.size() - 3, 3); - return ext == "hdr" || ext == "dcm" || ext == "jp2"; + return ext == "hdr" || ext == "dcm" || ext == "jp2" || + name.find("rle8.bmp") != std::string::npos; } };