From 4b988a2c207e4a36f1936f77720982514a8c3b01 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 23 Jul 2013 20:22:39 +0200 Subject: [PATCH] Fix test expectance after adding layer name in error messages --- tests/cpp_tests/fontset_runtime_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpp_tests/fontset_runtime_test.cpp b/tests/cpp_tests/fontset_runtime_test.cpp index 436b1523d..a10715c0b 100644 --- a/tests/cpp_tests/fontset_runtime_test.cpp +++ b/tests/cpp_tests/fontset_runtime_test.cpp @@ -53,7 +53,7 @@ int main(int argc, char** argv) // NOTE: this is a valid font, but will fail because none are registered fontset.add_face_name("DejaVu Sans Book"); m.insert_fontset("fontset", fontset); - mapnik::layer lyr("layer"); + mapnik::layer lyr("myLayerName"); lyr.set_datasource(memory_ds); lyr.add_style("style"); m.addLayer(lyr); @@ -70,7 +70,7 @@ int main(int argc, char** argv) mapnik::agg_renderer ren(m,buf); ren.apply(); } catch (std::exception const& ex) { - BOOST_TEST_EQ(std::string(ex.what()),std::string("No valid font face could be loaded for font set: 'fontset'")); + BOOST_TEST_EQ(std::string(ex.what()),std::string("myLayerName: No valid font face could be loaded for font set: 'fontset'")); } if (!::boost::detail::test_errors()) { if (quiet) std::clog << "\x1b[1;32m.\x1b[0m";