From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 73F1510E0F4 for ; Mon, 26 Jun 2023 05:17:00 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org, kamil.konieczny@linux.intel.com Date: Mon, 26 Jun 2023 10:40:14 +0530 Message-Id: <20230626051031.2363120-8-bhanuprakash.modem@intel.com> In-Reply-To: <20230626051031.2363120-1-bhanuprakash.modem@intel.com> References: <20230626051031.2363120-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [V4 i-g-t 07/24] tests/kms: Close the fd before exit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Close the file descriptor before exiting the test. Signed-off-by: Bhanuprakash Modem --- tests/kms_vrr.c | 1 + tests/kms_writeback.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c index d2d79c4eb..6a766bfb9 100644 --- a/tests/kms_vrr.c +++ b/tests/kms_vrr.c @@ -528,5 +528,6 @@ igt_main igt_fixture { igt_display_fini(&data.display); + drm_close_driver(data.drm_fd); } } diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index c4808b02c..db1f0884f 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -606,5 +606,6 @@ igt_main_args("b:c:dl", long_options, help_str, opt_handler, NULL) detach_crtc(&display, output); igt_remove_fb(display.drm_fd, &input_fb); igt_display_fini(&display); + drm_close_driver(display.drm_fd); } } -- 2.40.0