diff --git a/test/standalone/csv_test.cpp b/test/standalone/csv_test.cpp index 9405e6615..2023f67f4 100644 --- a/test/standalone/csv_test.cpp +++ b/test/standalone/csv_test.cpp @@ -157,14 +157,15 @@ void require_geometry(mapnik::feature_ptr feature, } } // anonymous namespace +static const std::string csv_plugin("./plugins/input/csv.input"); + +const bool registered = mapnik::datasource_cache::instance().register_datasources(csv_plugin); + TEST_CASE("csv") { - std::string csv_plugin("./plugins/input/csv.input"); if (mapnik::util::exists(csv_plugin)) { - const bool registered = mapnik::datasource_cache::instance().register_datasources(csv_plugin); - REQUIRE(registered); // make the tests silent since we intentially test error conditions that are noisy