From 1293ec674de2cd9e9dfd8bf81696062751b6b810 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Thu, 6 Feb 2025 18:57:06 +0100 Subject: [PATCH] Tests/pdf-operator-text: Check if pdf target is enabled The same is done in pdf-mime-data.c --- test/pdf-operators-text.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/pdf-operators-text.c b/test/pdf-operators-text.c index 6d654d115..4c63b7ebd 100644 --- a/test/pdf-operators-text.c +++ b/test/pdf-operators-text.c @@ -150,9 +150,18 @@ draw (cairo_t *cr, int width, int height) return CAIRO_TEST_SUCCESS; } +static cairo_test_status_t +preamble (cairo_test_context_t *ctx) +{ + if (! cairo_test_is_target_enabled (ctx, "pdf")) + return CAIRO_TEST_UNTESTED; + + return CAIRO_TEST_SUCCESS; +} + CAIRO_TEST (pdf_operators_text, "Test pdf-operators.c glyph positioning", "pdf", /* keywords */ NULL, /* requirements */ WIDTH, HEIGHT, - NULL, draw) + preamble, draw)