summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-21 19:55:08 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-21 19:55:08 -0500
commite9e4bd423a2d9a60340474bdf84151d1941df378 (patch)
treea2044c5858794ea05db591531d55943011e55aff
parent81ddf4b9466c324b22becc0125b92cf296ec82d4 (diff)
downloadgtk+-e9e4bd423a2d9a60340474bdf84151d1941df378.tar.gz
testsuite: Make performance test fail
If a child process exits unsuccessfully, make the performance test fail.
-rw-r--r--testsuite/css/performance/test-css-performance.c3
1 files changed, 3 insertions, 0 deletions
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);