Message ID | 1407325803-6944-21-git-send-email-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 92f4eb5..e8a0b39 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -396,6 +396,9 @@ static int __wait_for_vblank(unsigned int flags, int crtc_idx, ret = drmWaitVBlank(drm_fd, &wait_vbl); if (ret == 0) { + igt_assert_f(wait_vbl.reply.tval_sec != 0 || + wait_vbl.reply.tval_usec != 0, + "zeroed vblank timestamp\n"); reply->ts.tv_sec = wait_vbl.reply.tval_sec; reply->ts.tv_usec = wait_vbl.reply.tval_usec; reply->sequence = wait_vbl.reply.sequence;