From 95a967faa2558a32a13390de71361af051926c75 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Tue, 16 Oct 2012 17:34:38 +0300 Subject: [PATCH] flip_test: check drmHandleEvents()' return value Signed-off-by: Imre Deak [danvet: s/assert/do_or_die] Signed-off-by: Daniel Vetter --- tests/flip_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/flip_test.c b/tests/flip_test.c index b338448..6f269cd 100644 --- a/tests/flip_test.c +++ b/tests/flip_test.c @@ -494,12 +494,12 @@ static void flip_mode(struct test_output *o, int crtc, int duration) } } - drmHandleEvent(drm_fd, &evctx); + do_or_die(drmHandleEvent(drm_fd, &evctx)); } /* and drain the event queue */ evctx.page_flip_handler = NULL; - drmHandleEvent(drm_fd, &evctx); + do_or_die(drmHandleEvent(drm_fd, &evctx)); /* 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. */ -- 2.7.4