From 84ea9e8ccb4930598d5448153a1d5083ea6acbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lipinsk=C3=BD?= <18076-Mr-Tao@users.noreply.gitlab.freedesktop.org> Date: Mon, 24 Aug 2026 01:36:23 +0200 Subject: [PATCH] test: fail when a child terminates abnormally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a later test child is killed by a signal, exit_code may still contain zero from the preceding child. Return EXIT_FAILURE explicitly so Meson cannot report a false success. Part-of: Signed-off-by: Lukáš Lipinský <18076-Mr-Tao@users.noreply.gitlab.freedesktop.org> --- test/tests-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests-common.c b/test/tests-common.c index dad07412b..2c844c0c5 100644 --- a/test/tests-common.c +++ b/test/tests-common.c @@ -27,7 +27,7 @@ run_test_in_child(const testfunc_t* (*suite)(void), const char *funcname) if (exit_code != 0) { child_failed: printf(" FAIL\n"); - exit(exit_code); + exit(EXIT_FAILURE); } } else { testfunc_t f = *func;