tests: Initialise breakpoint list for all test types

The list of client breakpoints was used for both client tests and plugin
tests - anything that uses the weston-test module - but was only
initialised in the client-test path. Make it unconditional.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: efde2fa0b1 ("tests: Add client<->compositor breakpoint support")
This commit is contained in:
Daniel Stone 2023-07-03 22:39:38 +01:00
parent 1c262efd70
commit 17e4a77831

View file

@ -699,8 +699,6 @@ create_client_thread(struct weston_test *test, struct wet_testsuite_data *data)
data->thread_event_pipe = pipefd[1];
wl_list_init(&data->breakpoints.list);
ret = sem_init(&data->breakpoints.client_break, 0, 0);
if (ret != 0) {
weston_log("Creating breakpoint semaphore failed: %s (%d)\n",
@ -759,6 +757,8 @@ idle_launch_testsuite(void *test_)
if (!data)
return;
wl_list_init(&data->breakpoints.list);
switch (data->type) {
case TEST_TYPE_CLIENT:
if (create_client_thread(test, data) < 0) {