From 646bcbcbd9c16c82631634289282d7c40eb37ed3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 23 Oct 2015 10:39:55 -0700 Subject: [PATCH] don't depend on filesystem directly --- test/unit/datasource/geojson.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/unit/datasource/geojson.cpp b/test/unit/datasource/geojson.cpp index d8e8e2a3c..d83f8b762 100644 --- a/test/unit/datasource/geojson.cpp +++ b/test/unit/datasource/geojson.cpp @@ -30,7 +30,6 @@ #include #include -#include #include 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"); } } }