lib: make igt_set_vt_graphics_mode never fail

All tests agree that this is a letal failure, so no point
to pass it back to callers.

Also add some igt_require calls for the drm_fd where I've
noticed that it's missing.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-10-31 17:02:41 +01:00
parent 0369fe19b8
commit 1f0cf2df85
9 changed files with 15 additions and 12 deletions
+3 -1
View File
@@ -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,