[unit-tests] fix windows 11 path search
This commit is contained in:
parent
bf6081b207
commit
a73d2f7d94
2 changed files with 10 additions and 3 deletions
|
@ -199,7 +199,11 @@ inline int create_disk_index(std::string const& filename, bool silent = true)
|
|||
{
|
||||
cmd += std::string("DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " ";
|
||||
}
|
||||
cmd += "mapnik-index " + filename;
|
||||
cmd += "mapnik-index";
|
||||
#ifdef _WINDOWS
|
||||
cmd += ".exe";
|
||||
#endif
|
||||
cmd += " " + filename;
|
||||
if (silent)
|
||||
{
|
||||
#ifndef _WINDOWS
|
||||
|
|
|
@ -74,8 +74,11 @@ int create_shapefile_index(std::string const& filename, bool index_parts, bool s
|
|||
{
|
||||
cmd += std::string("DYLD_LIBRARY_PATH=") + std::getenv("DYLD_LIBRARY_PATH") + " ";
|
||||
}
|
||||
|
||||
cmd += "shapeindex ";
|
||||
cmd += "shapeindex";
|
||||
#ifdef _WINDOWS
|
||||
cmd += ".exe";
|
||||
#endif
|
||||
cmd += " ";
|
||||
if (index_parts) cmd+= "--index-parts ";
|
||||
cmd += filename;
|
||||
if (silent)
|
||||
|
|
Loading…
Reference in a new issue