testsuite: Make performance test fail
authorMatthias Clasen <mclasen@redhat.com>
Wed, 22 Jan 2020 00:55:08 +0000 (19:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 22 Jan 2020 00:55:08 +0000 (19:55 -0500)
If a child process exits unsuccessfully,
make the performance test fail.

testsuite/css/performance/test-css-performance.c

index 27b9d623aa4640022444c0ac7d2f6f3462d138ba..40d996ddc2997bc00b2d581b54e8e75cb6f2638a 100644 (file)
@@ -91,6 +91,9 @@ main (int argc, char *argv[])
       if (!g_subprocess_wait (subprocess, NULL, &error))
         g_error ("Run child: %s", error->message);
 
+      if (!g_subprocess_get_successful (subprocess))
+        g_error ("Child process failed");
+        
       g_object_unref (subprocess);
       g_object_unref (launcher);