fritzkink
2023-11-12 393f2702f7992183fdb50b562395c1d57e6134b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- cairo-1.18.0/test/pdf-structure.c    2023-09-23 16:18:32.000000000 +0200
+++ cairo-1.18.0/test/pdf-structure.c.new    2023-10-22 18:38:14.407073994 +0200
@@ -497,15 +497,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, wrong version, missing ref */
+            result = CAIRO_TEST_UNTESTED;  pdfinfo not found, wrong version, missing ref 
     }
+*/
+      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;