[gtk/matthiasc/perf-tests] testsuite: Make performance test fail



commit e9e4bd423a2d9a60340474bdf84151d1941df378
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 21 19:55:08 2020 -0500

    testsuite: Make performance test fail
    
    If a child process exits unsuccessfully,
    make the performance test fail.

 testsuite/css/performance/test-css-performance.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/testsuite/css/performance/test-css-performance.c 
b/testsuite/css/performance/test-css-performance.c
index 27b9d623aa..40d996ddc2 100644
--- a/testsuite/css/performance/test-css-performance.c
+++ b/testsuite/css/performance/test-css-performance.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]