Obsolete golang-120
[oi-userland.git] / components / library / cairo / patches / 04-WIFEXITED.patch
blob06b8605b18f6f95567f1b4c08377e8230dc6f8c1
1 --- cairo-1.18.2/test/pdf-structure.c.orig 2024-09-01 15:09:23.000000000 +0200
2 +++ cairo-1.18.2/test/pdf-structure.c 2024-09-04 21:53:07.995795921 +0200
3 @@ -547,15 +547,20 @@
4 ctx->output, BASENAME, test->name);
6 ret = system (command);
7 - cairo_test_log (ctx, "%s exit code %d\n", command,
8 - WIFEXITED (ret) ? WEXITSTATUS (ret) : -1);
9 + cairo_test_log (ctx, "%s exit code %d\n", command, ret);
10 +// WIFEXITED (ret) ? WEXITSTATUS (ret) : -1);
12 - if (WIFEXITED (ret)) {
13 +/* if (WIFEXITED (ret)) {
14 if (WEXITSTATUS (ret) == 0)
15 result = CAIRO_TEST_SUCCESS;
16 else if (WEXITSTATUS (ret) == 4)
17 - result = CAIRO_TEST_UNTESTED; /* pdfinfo not found or wrong version */
18 + result = CAIRO_TEST_UNTESTED; pdfinfo not found or wrong version
20 +*/
21 + if ( ret == 0)
22 + result = CAIRO_TEST_SUCCESS;
23 + else if ( ret > 0 )
24 + result = CAIRO_TEST_UNTESTED; /* pdfinfo not found, wrong version, missing ref */
26 free (command);
27 return result;