Tests/pdf-operator-text: Check if pdf target is enabled

The same is done in pdf-mime-data.c
This commit is contained in:
Luca Bacci 2025-02-06 18:57:06 +01:00
parent 83e5d95ec2
commit 1293ec674d

View file

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