Re: [PATCH v2 2/3] tests: add frame_callback_wait_nofail

2014-07-22 Thread Pekka Paalanen
On Wed, 16 Jul 2014 11:32:50 +0200 Marek Chalupa wrote: > With expect_protocol_error, we need a possibility to wait for a frame > without aborting the test when wl_display_dispatch returns -1; > This patch adds function frame_callback_wait_nofail that only > returns 1 or 0 (instead of aborting on

[PATCH v2 2/3] tests: add frame_callback_wait_nofail

2014-07-16 Thread Marek Chalupa
With expect_protocol_error, we need a possibility to wait for a frame without aborting the test when wl_display_dispatch returns -1; This patch adds function frame_callback_wait_nofail that only returns 1 or 0 (instead of aborting on error). --- tests/weston-test-client-helper.c | 9 ++--- tes