mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 04:58:16 +02:00
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 <pekka.paalanen@collabora.com>
This commit is contained in:
parent
b8b8daacf2
commit
6f709a43b9
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue