intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH IGT] tests/chamelium: Close DRM file descriptor after tests
@ 2017-06-12 14:39 Paul Kocialkowski
  2017-06-12 15:21 ` Paul Kocialkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Kocialkowski @ 2017-06-12 14:39 UTC (permalink / raw)
  To: intel-gfx

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

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-14  9:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 14:39 [PATCH IGT] tests/chamelium: Close DRM file descriptor after tests Paul Kocialkowski
2017-06-12 15:21 ` Paul Kocialkowski
2017-06-13 12:30   ` Arkadiusz Hiler
2017-06-14  9:36   ` Chris Wilson
2017-06-14  9:54     ` Paul Kocialkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).