[PATCH 04/22] flip_test: check drmHandleEvents()' return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Imre Deak <imre.deak at intel.com>
---
 tests/flip_test.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/flip_test.c b/tests/flip_test.c
index b338448..5e39db6 100644
--- a/tests/flip_test.c
+++ b/tests/flip_test.c
@@ -494,12 +494,14 @@ static void flip_mode(struct test_output *o, int crtc, int duration)
 			}
 		}
 
-		drmHandleEvent(drm_fd, &evctx);
+		ret = drmHandleEvent(drm_fd, &evctx);
+		assert(ret == 0);
 	}
 
 	/* and drain the event queue */
 	evctx.page_flip_handler = NULL;
-	drmHandleEvent(drm_fd, &evctx);
+	ret = drmHandleEvent(drm_fd, &evctx);
+	assert(ret == 0);
 
 	/* 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. */
-- 
1.7.9.5



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux