summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/button-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/button-test.c b/tests/button-test.c
index 0f9367e6..2bb2e7f5 100644
--- a/tests/button-test.c
+++ b/tests/button-test.c
@@ -42,13 +42,13 @@ TEST(simple_button_test)
wl_test_send_button(client->test->wl_test, BTN_LEFT,
WL_POINTER_BUTTON_STATE_PRESSED);
- yield(client);
+ wl_display_roundtrip(client->wl_display);
assert(pointer->button == BTN_LEFT);
assert(pointer->state == WL_POINTER_BUTTON_STATE_PRESSED);
wl_test_send_button(client->test->wl_test, BTN_LEFT,
WL_POINTER_BUTTON_STATE_RELEASED);
- yield(client);
+ wl_display_roundtrip(client->wl_display);
assert(pointer->button == BTN_LEFT);
assert(pointer->state == WL_POINTER_BUTTON_STATE_RELEASED);
}