[PATCH wayland] tests/resources-test: Fix wl_resource_post_event call

Quentin Glidic sardemff7+wayland at sardemff7.net
Sun Jan 5 12:32:10 PST 2014


From: Quentin Glidic <sardemff7+git at sardemff7.net>

Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
---

I do not know if this call is wrong of this the test just reveals a bug but
without this, the wl_resource_post_event_array is called with random values

 tests/resources-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/resources-test.c b/tests/resources-test.c
index d7a428a..2428964 100644
--- a/tests/resources-test.c
+++ b/tests/resources-test.c
@@ -108,7 +108,7 @@ TEST(destroy_res_tst)
 	wl_resource_add_destroy_listener(res, &destroy_listener);
 
 	/* without implementation this should be ignored .. */
-	wl_resource_post_event(res, 0);
+	wl_resource_post_event(res, 0, 0, 0, 0, 0);
 
 	id = wl_resource_get_id(res);
 	link = wl_resource_get_link(res);
-- 
1.8.5.2



More information about the wayland-devel mailing list