kms_flip: keep drm_fd open for the dpms restore exit handler

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69161

Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
Imre Deak 2013-12-10 14:00:19 +02:00
parent 2c6c4cf2a1
commit 1ac94b50af

View File

@ -1538,8 +1538,10 @@ int main(int argc, char **argv)
}
igt_stop_signal_helper();
igt_fixture
close(drm_fd);
/*
* Let drm_fd leak, since it's needed by the dpms restore
* exit_handler and igt_exit() won't return.
*/
igt_exit();
}