From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B64910E291 for ; Tue, 16 May 2023 16:56:32 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org, kamil.konieczny@linux.intel.com, janga.rahul.kumar@intel.com Date: Tue, 16 May 2023 22:20:45 +0530 Message-Id: <20230516165058.4047595-8-bhanuprakash.modem@intel.com> In-Reply-To: <20230516165058.4047595-1-bhanuprakash.modem@intel.com> References: <20230516165058.4047595-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t 07/20] tests/nouveau_crc: 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. Cc: Lyude Paul Signed-off-by: Bhanuprakash Modem --- tests/nouveau_crc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/nouveau_crc.c b/tests/nouveau_crc.c index 785d39bde..d5aa0e650 100644 --- a/tests/nouveau_crc.c +++ b/tests/nouveau_crc.c @@ -409,7 +409,9 @@ igt_main close(data.nv_crc_dir); } } - igt_fixture - igt_display_fini(&data.display); + igt_fixture { + igt_display_fini(&data.display); + drm_close_driver(data.drm_fd); + } } -- 2.40.0