don't depend on filesystem directly
This commit is contained in:
parent
cf36c78812
commit
646bcbcbd9
1 changed files with 5 additions and 6 deletions
|
@ -30,7 +30,6 @@
|
|||
#include <mapnik/util/fs.hpp>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/optional/optional_io.hpp>
|
||||
|
||||
namespace {
|
||||
|
@ -320,7 +319,7 @@ TEST_CASE("geojson") {
|
|||
// cleanup in the case of a failed previous run
|
||||
if (mapnik::util::exists(filename + ".index"))
|
||||
{
|
||||
boost::filesystem::remove(filename + ".index");
|
||||
mapnik::util::remove(filename + ".index");
|
||||
}
|
||||
|
||||
for (auto create_index : { true, false })
|
||||
|
@ -387,7 +386,7 @@ TEST_CASE("geojson") {
|
|||
// cleanup in the case of a failed previous run
|
||||
if (mapnik::util::exists(filename + ".index"))
|
||||
{
|
||||
boost::filesystem::remove(filename + ".index");
|
||||
mapnik::util::remove(filename + ".index");
|
||||
}
|
||||
|
||||
for (auto create_index : { true, false })
|
||||
|
@ -423,7 +422,7 @@ TEST_CASE("geojson") {
|
|||
// cleanup
|
||||
if (create_index && mapnik::util::exists(filename + ".index"))
|
||||
{
|
||||
boost::filesystem::remove(filename + ".index");
|
||||
mapnik::util::remove(filename + ".index");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -439,7 +438,7 @@ TEST_CASE("geojson") {
|
|||
// cleanup in the case of a failed previous run
|
||||
if (mapnik::util::exists(filename + ".index"))
|
||||
{
|
||||
boost::filesystem::remove(filename + ".index");
|
||||
mapnik::util::remove(filename + ".index");
|
||||
}
|
||||
|
||||
for (auto create_index : { true, false })
|
||||
|
@ -474,7 +473,7 @@ TEST_CASE("geojson") {
|
|||
// cleanup
|
||||
if (create_index && mapnik::util::exists(filename + ".index"))
|
||||
{
|
||||
boost::filesystem::remove(filename + ".index");
|
||||
mapnik::util::remove(filename + ".index");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue