tests: change type of int buffer_copy_done to bool

The 'struct test' has a field 'int buffer_copy_done', but it
is in a fact a boolean. Change it to 'bool buffer_copy_done'.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
dev
Leandro Ribeiro 4 years ago committed by Pekka Paalanen
parent 6b4d48736f
commit 6c7dc70d86
  1. 6
      tests/weston-test-client-helper.c
  2. 2
      tests/weston-test-client-helper.h

@ -545,7 +545,7 @@ test_handle_capture_screenshot_done(void *data, struct weston_test *weston_test)
struct test *test = data;
testlog("Screenshot has been captured\n");
test->buffer_copy_done = 1;
test->buffer_copy_done = true;
}
static const struct weston_test_listener test_listener = {
@ -1618,11 +1618,11 @@ capture_screenshot_of_output(struct client *client)
client->output->width,
client->output->height);
client->test->buffer_copy_done = 0;
client->test->buffer_copy_done = false;
weston_test_capture_screenshot(client->test->weston_test,
client->output->wl_output,
buffer->proxy);
while (client->test->buffer_copy_done == 0)
while (client->test->buffer_copy_done == false)
if (wl_display_dispatch(client->wl_display) < 0)
break;

@ -72,7 +72,7 @@ struct test {
int pointer_x;
int pointer_y;
uint32_t n_egl_buffers;
int buffer_copy_done;
bool buffer_copy_done;
};
struct input {

Loading…
Cancel
Save