From 6f709a43b96ee8cbdf9c5dab39c0b851bbad85de Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 7 Apr 2026 17:29:33 +0300 Subject: [PATCH] frontend: skip main loop on failure If some initialization code somewhere calls weston_compositor_exit_with_code() to set an error, don't bother running at all. This is useful for alpha-blending test when it tries to force different blending implementations on the GL-renderer. Signed-off-by: Pekka Paalanen --- frontend/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/main.c b/frontend/main.c index deeaf6d6d..98bb57e6c 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -5680,7 +5680,8 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_data) goto out; } - wl_display_run(display); + if (wet.compositor->exit_code == EXIT_SUCCESS) + wl_display_run(display); /* Allow for setting return exit code after * wl_display_run returns normally. This is