Skip to content
Snippets Groups Projects
Commit 7738184d authored by Chris Wilson's avatar Chris Wilson Committed by Mauro Carvalho Chehab
Browse files

kms_scaling_modes: Close device before exit


Close the device fd before we check for leaks during the atexit
handlers.

Signed-off-by: default avatarChris Wilson <chris.p.wilson@intel.com>
Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 66a4784a
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,8 @@ igt_main
igt_subtest_with_dynamic("scaling-mode-none")
test_scaling_mode(&data, DRM_MODE_SCALE_NONE);
igt_fixture
igt_fixture {
igt_display_fini(&data.display);
close(data.drm_fd);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment