compositor: move tests quirks initialization to weston_compositor_create()
Until now we had the test quirks initialization in wet_main(), just after calling weston_compositor_create(). But there are some cases that require the quirks during struct weston_compositor creation time. Move test quirks initialization to weston_compositor_create() in order to cover more use cases for the test quirks mechanism. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
bb7ed37a89
commit
cdb7218daf
+1
-4
@@ -3283,15 +3283,12 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_data)
|
||||
backend = weston_choose_default_backend();
|
||||
}
|
||||
|
||||
wet.compositor = weston_compositor_create(display, log_ctx, &wet);
|
||||
wet.compositor = weston_compositor_create(display, log_ctx, &wet, test_data);
|
||||
if (wet.compositor == NULL) {
|
||||
weston_log("fatal: failed to create compositor\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (test_data)
|
||||
weston_compositor_test_data_init(wet.compositor, test_data);
|
||||
|
||||
protocol_scope =
|
||||
weston_log_ctx_add_log_scope(log_ctx, "proto",
|
||||
"Wayland protocol dump for all clients.\n",
|
||||
|
||||
Reference in New Issue
Block a user