From 6afdc89894bdcdafe98eff700c76d1572be4c3a5 Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Tue, 5 Apr 2022 10:31:26 +0200 Subject: [PATCH] fix test for newer cairo --- test/unit/renderer/cairo_io.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/renderer/cairo_io.cpp b/test/unit/renderer/cairo_io.cpp index c3b739404..4f95f0d49 100644 --- a/test/unit/renderer/cairo_io.cpp +++ b/test/unit/renderer/cairo_io.cpp @@ -12,6 +12,11 @@ MAPNIK_DISABLE_WARNING_POP #include #if defined(HAVE_CAIRO) +#include + +// see https://gitlab.freedesktop.org/cairo/cairo/-/issues/553 +// TLDR: cairo has removed the writing of the svg version in cairo 1.17.6 +#if (CAIRO_VERSION_MAJOR <= 1) && (CAIRO_VERSION_MINOR <= 17) && (CAIRO_VERSION_MICRO < 6) TEST_CASE("cairo_io") { SECTION("save_to_cairo_file - SVG") @@ -33,3 +38,4 @@ TEST_CASE("cairo_io") } } #endif +#endif