Commit a37920e7 authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Daniel Stone

tests: use weston_compositor_exit

Use the proper function to exit instead of the libwayland one, to allow main
handle_exit() to be called.

This is just to unify the exit paths.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
parent 818c20e7
Pipeline #17807 passed with stage
in 6 minutes and 26 seconds
......@@ -85,7 +85,7 @@ runtime_tests(void *data)
api = weston_plugin_api_get(compositor, MY_API_NAME, sz);
assert(api && api->func2 == dummy_func);
wl_display_terminate(compositor->wl_display);
weston_compositor_exit(compositor);
}
WL_EXPORT int
......
......@@ -76,7 +76,7 @@ surface_to_from_global(void *data)
weston_view_from_global(view, 5, 10, &ix, &iy);
assert(ix == 0 && iy == 0);
wl_display_terminate(compositor->wl_display);
weston_compositor_exit(compositor);
}
WL_EXPORT int
......
......@@ -57,7 +57,7 @@ surface_transform(void *data)
weston_view_to_global_float(view, 50, 40, &x, &y);
assert(x == 200 && y == 340);
wl_display_terminate(compositor->wl_display);
weston_compositor_exit(compositor);
}
WL_EXPORT int
......
......@@ -72,7 +72,7 @@ test_client_sigchld(struct weston_process *process, int status)
/* In case the child aborted or segfaulted... */
assert(status == 0);
wl_display_terminate(test->compositor->wl_display);
weston_compositor_exit(test->compositor);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment