From a0048997cf5f71dec12c2511ec79262f96347a3a Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Mon, 25 Jun 2012 17:50:19 +0200 Subject: [PATCH] TEST: sqlite layer names are lowercase --- .../OGRAdapters/otbOGRDataSourceWrapperNew.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Testing/Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapperNew.cxx b/Testing/Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapperNew.cxx index 9a5d183cf2..8723b19881 100644 --- a/Testing/Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapperNew.cxx +++ b/Testing/Code/UtilitiesAdapters/OGRAdapters/otbOGRDataSourceWrapperNew.cxx @@ -23,6 +23,7 @@ #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> +#include <boost/algorithm/string.hpp> #include "itksys/SystemTools.hxx" #include "otbOGRDataSourceWrapper.h" @@ -389,7 +390,7 @@ BOOST_AUTO_TEST_CASE(OGRDataSource_sqlite_overwrite) std::string filename = workingdir + "/" + k_name + ".sqlite"; filename = itksys::SystemTools::ConvertToOutputPath(filename.c_str()); - const std::string layer1 = k_name; + const std::string layer1 = boost::algorithm::to_lower_copy(k_name); // Cannot create read data source if file does not exists BOOST_CHECK_THROW(ogr::DataSource::New(filename, ogr::DataSource::Modes::Read), -- GitLab