From: Paul Kocialkowski <paul.kocialkow...@linux.intel.com>

This adds a call to close the DRM file descriptor. It is required as IGT
will attempt to become DRM master after running the test, resulting in a
failure.

Signed-off-by: Paul Kocialkowski <paul.kocialkow...@linux.intel.com>
---
 tests/chamelium.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/chamelium.c b/tests/chamelium.c
index acd17886..bd7772f8 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -749,4 +749,8 @@ igt_main
                connector_subtest("vga-hpd-without-ddc", VGA)
                        test_hpd_without_ddc(&data, port);
        }
+
+       igt_fixture {
+               close(data.drm_fd);
+       }
 }
-- 
2.13.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to