diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2011-09-28 23:34:09 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2011-10-19 13:35:07 +0200 |
commit | 3c8adda6e1e6b0471b3d70a63d795622bbeb1580 (patch) | |
tree | c0512ab722abfeb0c025c43c5e12ca02b854283d /tests | |
parent | c2925e51979fcb829962e7bf66c13cbc96c39db1 (diff) |
modetest: Check error message from pageflip ioctl
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/modetest/modetest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index f6fdcf48..35045c87 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -608,8 +608,12 @@ set_mode(struct connector *c, int count, int page_flip) if (c[i].mode == NULL) continue; - drmModePageFlip(fd, c[i].crtc, other_fb_id, - DRM_MODE_PAGE_FLIP_EVENT, &c[i]); + ret = drmModePageFlip(fd, c[i].crtc, other_fb_id, + DRM_MODE_PAGE_FLIP_EVENT, &c[i]); + if (ret) { + fprintf(stderr, "failed to page flip: %s\n", strerror(errno)); + return; + } gettimeofday(&c[i].start, NULL); c[i].swap_count = 0; c[i].fb_id[0] = fb_id; |