diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 19:55:08 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 19:55:08 -0500 |
commit | e9e4bd423a2d9a60340474bdf84151d1941df378 (patch) | |
tree | a2044c5858794ea05db591531d55943011e55aff | |
parent | 81ddf4b9466c324b22becc0125b92cf296ec82d4 (diff) | |
download | gtk+-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.c | 3 |
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); |