mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-26 17:00:11 +01:00
tests: break out on client_capture_output() error
If the Wayland connection died, this code path ended up in an endless loop, because test-asserts do not abort. Break out to fix this. The test-assert records the failure, so not need to do more. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
65554abd88
commit
12334b3e75
1 changed files with 2 additions and 1 deletions
|
|
@ -2013,7 +2013,8 @@ client_capture_output(struct client *client,
|
|||
|
||||
weston_capture_source_v1_capture(capt.source, buf->proxy);
|
||||
while (!capt.complete)
|
||||
test_assert_int_ge(wl_display_dispatch(client->wl_display), 0);
|
||||
if (!test_assert_int_ge(wl_display_dispatch(client->wl_display), 0))
|
||||
break;
|
||||
|
||||
weston_capture_source_v1_destroy(capt.source);
|
||||
weston_capture_v1_destroy(capt.factory);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue