diff --git a/test/data b/test/data index fb1529e22..ca5716fce 160000 --- a/test/data +++ b/test/data @@ -1 +1 @@ -Subproject commit fb1529e225b36f8a3077ad23f7005951a07c8a7e +Subproject commit ca5716fcef3ed33b319d3047f7d8190bf6ed6081 diff --git a/test/unit/datasource/ogr.cpp b/test/unit/datasource/ogr.cpp index 5401c1fe2..5b785f9b2 100644 --- a/test/unit/datasource/ogr.cpp +++ b/test/unit/datasource/ogr.cpp @@ -21,7 +21,7 @@ *****************************************************************************/ #include "catch.hpp" - +#include #include #include #include @@ -45,8 +45,10 @@ TEST_CASE("ogr") { mapnik::image_rgba8 im(256,256); mapnik::agg_renderer ren(m, im); ren.apply(); - //mapnik::save_to_file(im, "./test/data/images/point_json.png"); std::string filename("./test/data/images/point_json.png"); + if (std::getenv("UPDATE") != nullptr) { + mapnik::save_to_file(im, filename); + } std::unique_ptr reader(mapnik::get_image_reader(filename,"png")); mapnik::image_any data = reader->read(0, 0, reader->width(), reader->height()); mapnik::image_rgba8 expected = mapnik::util::get(data);