--- cairo-1.18.2/test/pdf-structure.c.orig 2024-09-01 15:09:23.000000000 +0200 +++ cairo-1.18.2/test/pdf-structure.c 2024-09-04 21:53:07.995795921 +0200 @@ -547,15 +547,20 @@ ctx->output, BASENAME, test->name); ret = system (command); - cairo_test_log (ctx, "%s exit code %d\n", command, - WIFEXITED (ret) ? WEXITSTATUS (ret) : -1); + cairo_test_log (ctx, "%s exit code %d\n", command, ret); +// WIFEXITED (ret) ? WEXITSTATUS (ret) : -1); - if (WIFEXITED (ret)) { +/* if (WIFEXITED (ret)) { if (WEXITSTATUS (ret) == 0) result = CAIRO_TEST_SUCCESS; else if (WEXITSTATUS (ret) == 4) - result = CAIRO_TEST_UNTESTED; /* pdfinfo not found or wrong version */ + result = CAIRO_TEST_UNTESTED; pdfinfo not found or wrong version } +*/ + if ( ret == 0) + result = CAIRO_TEST_SUCCESS; + else if ( ret > 0 ) + result = CAIRO_TEST_UNTESTED; /* pdfinfo not found, wrong version, missing ref */ free (command); return result;