From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> If the event never arrives we can timeout and end the test. Signed-off-by: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx> Signed-off-by: Robert Foss <robert.foss@xxxxxxxxxxxxx> --- tests/kms_atomic_transition.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index 5fdb6175..095af515 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -383,7 +383,9 @@ static void commit_display(igt_display_t *display, unsigned event_mask, bool non struct drm_event_vblank *vblank = (void *)buf; uint32_t crtc_id, pipe = I915_MAX_PIPES; + igt_set_timeout(3, "Timed out while reading drm_fd\n"); ret = read(display->drm_fd, buf, sizeof(buf)); + igt_reset_timeout(); if (ret < 0 && (errno == EINTR || errno == EAGAIN)) continue; -- 2.11.0.453.g787f75f05 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx