summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_cursor_crc.c')
-rw-r--r--tests/kms_cursor_crc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index c82d3e76e..359825ca8 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -334,7 +334,9 @@ int main(int argc, char **argv)
const char *cmd = "pipe A none";
data.drm_fd = drm_open_any();
- do_or_die(igt_set_vt_graphics_mode());
+ igt_require(data.drm_fd >= 0);
+
+ igt_set_vt_graphics_mode();
igt_debugfs_init(&data.debugfs);
data.ctl = igt_debugfs_fopen(&data.debugfs,