mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 04:40:07 +01:00
test/pdf-mime-data.c: Check for pdfimages
Currently, the pdf-mime-data check just fails for me with the following
output:
sh: 1: pdfimages: not found
pdf-mime-data: FAIL
pdf-mime-data.log contains:
pdfimages failed with exit status 32512
Since I do not have pdfimages installed... yeah.
This commit "fixes" that problem by skipping the test if pdfimages is
not available. No idea if it would pass if it were available, but I do
not feel like installing pdfimages just to test.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2a8d90c6fc
commit
2f25fa68c0
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ preamble (cairo_test_context_t *ctx)
|
|||
if (! cairo_test_is_target_enabled (ctx, "pdf"))
|
||||
return CAIRO_TEST_UNTESTED;
|
||||
|
||||
exit_status = system ("command -v pdfimages");
|
||||
if (exit_status) {
|
||||
cairo_test_log (ctx, "pdfimages not available\n");
|
||||
return CAIRO_TEST_UNTESTED;
|
||||
}
|
||||
|
||||
image = cairo_test_create_surface_from_png (ctx, IMAGE_FILE ".png");
|
||||
test_status = read_file (ctx, IMAGE_FILE ".jpg", &data, &len);
|
||||
if (test_status) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue