[igt-dev] [PATCH i-g-t 69/74] drm_read: Close device before exit
Mauro Carvalho Chehab
mauro.chehab at linux.intel.com
Thu Sep 1 06:37:17 UTC 2022
From: Chris Wilson <chris.p.wilson at intel.com>
Close the device fd before we check for leaks during the atexit
handlers.
Signed-off-by: Chris Wilson <chris.p.wilson at intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl at intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
tests/drm_read.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/drm_read.c b/tests/drm_read.c
index 4a966a23b550..36dc623ede13 100644
--- a/tests/drm_read.c
+++ b/tests/drm_read.c
@@ -46,6 +46,8 @@
#include <pthread.h>
#include "drm.h"
+#include "igt_types.h"
+
IGT_TEST_DESCRIPTION("Call read(drm) and see if it behaves.");
static void sighandler(int sig, siginfo_t * info, void *context)
@@ -253,10 +255,10 @@ static void test_short_buffer_wakeup(int in, enum pipe pipe)
igt_main
{
- int fd;
igt_display_t display;
struct igt_fb fb;
enum pipe pipe;
+ igt_fd_t(fd);
igt_fixture {
struct sigaction alarm_action = {};
--
2.37.2
More information about the igt-dev
mailing list