don't depend on filesystem directly

This commit is contained in:
Dane Springmeyer 2015-10-23 10:39:55 -07:00
parent cf36c78812
commit 646bcbcbd9

View file

@ -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");
}
}
}