tests: check wl_display_roundtrip() for errors
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 12 Dec 2012 12:26:41 +0000 (14:26 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Dec 2012 15:39:01 +0000 (10:39 -0500)
commitf2aa64f18a44ad6343a3da42288a604fad8579f4
treebf4c52a2279bb0c607c627bc923d504b299cddf5
parent07921d791aa3b72d74f1a935e8ac6cae73825b22
tests: check wl_display_roundtrip() for errors

Add a macro that wraps wl_display_roundtrip() and check for errors. It
is a macro, so that the assert would show the relevant file and line
number.

This will also catch protocol errors, that would go unnoticed otherwise.

All roundtrips in tests are replaced with the check.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
tests/button-test.c
tests/event-test.c
tests/keyboard-test.c
tests/text-test.c
tests/weston-test-client-helper.h