flip_test: add check to see if any event has occured

At the moment select() would time out in case we don't get any event.
When we add vblank events in a later patch, it's possible that we
receive one type of events but not the other type. In this case select()
doesn't time out and we need another way to detect this.

Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
Imre Deak 2012-10-16 04:11:43 +03:00
parent fe7fea0be3
commit ae62874cf1

View File

@ -516,6 +516,11 @@ fb_is_bound(struct test_output *o, int fb)
static void check_final_state(struct test_output *o, struct event_state *es,
unsigned int ellapsed)
{
if (es->count == 0) {
fprintf(stderr, "no %s event received\n", es->name);
exit(12);
}
/* Verify we drop no frames, but only if it's not a TV encoder, since
* those use some funny fake timings behind userspace's back. */
if (o->flags & TEST_CHECK_TS && !analog_tv_connector(o)) {