From 7b746f012d47c2130a6c5dbb76142daaef22c727 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 5 Dec 2013 22:44:59 +0200 Subject: [PATCH] kms_flip: keep drm_fd open for exit handlers drm_fd is still needed by the dpms restore exit handler, so don't close it before exit handlers are run. Signed-off-by: Imre Deak --- tests/kms_flip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 4be1dee..04dcc1b 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1534,8 +1534,8 @@ int main(int argc, char **argv) } igt_stop_signal_helper(); + igt_exit(); + igt_fixture close(drm_fd); - - igt_exit(); } -- 1.8.1.2