From 204937bc411104764c4463517828c582ffb874e1 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Mon, 13 Jul 2015 11:58:16 +0200
Subject: [PATCH] ENH: both filenames cannot be same always. unwanted check

---
 Modules/IO/TestKernel/src/otbTestHelper.cxx | 22 ++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/Modules/IO/TestKernel/src/otbTestHelper.cxx b/Modules/IO/TestKernel/src/otbTestHelper.cxx
index 2b1e9f6cc3..ab256ff3ef 100644
--- a/Modules/IO/TestKernel/src/otbTestHelper.cxx
+++ b/Modules/IO/TestKernel/src/otbTestHelper.cxx
@@ -1141,17 +1141,17 @@ int TestHelper::RegressionTestOgrFile(const char *testOgrFilename, const char *b
   /* -------------------------------------------------------------------- */
   otbCheckStringValue("INFO: using driver", ref_poDriver->GetName(), test_poDriver->GetName(), nbdiff, m_ReportErrors);
 
-  std::string strRefName(ref_poDS->GetName());
-  std::string strTestName(test_poDS->GetName());
-  if (strRefName != strTestName)
-    {
-    if (!m_ReportErrors)
-      {
-      otbPrintDiff("WARNING: INFO: Internal data source name poDS->GetName() were different",
-                   strRefName,
-                   strTestName);
-      }
-    }
+  // std::string strRefName(ref_poDS->GetName());
+  // std::string strTestName(test_poDS->GetName());
+  // if (strRefName != strTestName)
+  //   {
+  //   if (!m_ReportErrors)
+  //     {
+  //     otbPrintDiff("WARNING: INFO: Internal data source name poDS->GetName() were different",
+  //                  strRefName,
+  //                  strTestName);
+  //     }
+  //   }
 
   /* -------------------------------------------------------------------- */
   /*      Process each data source layer.                                 */
-- 
GitLab