fix odd inf loop in catch.hpp

This commit is contained in:
Dane Springmeyer 2015-06-30 18:47:36 -07:00
parent 9a54d720cd
commit c7693d9765

View file

@ -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