Skip to contentSkip to conversation

tests/chamelium: Close DRM file descriptor after tests

PATCH Superseded Paul Kocialkowski 2 participants 3 messages Jun 13, 2017

lore
Share & tools
lore
#1 lore raw

PATCH v2 1/1 tests/chamelium: Close DRM file descriptor after tests

From: Paul Kocialkowski <[email protected]>

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.

---
 tests/chamelium.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/chamelium.c +4 -0
index acd17886..bd7772f8 100644
@@ -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);
+	}
 }
Signature · 6 lines
2.13.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 5 lines · Paul Kocialkowski

From: Paul Kocialkowski <[email protected]>

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.

+Lyude for Chamelium patches

Quoted 18 lines
---
 tests/chamelium.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/chamelium.c +4 -0
index acd17886..bd7772f8 100644
@@ -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);
+	}
 }
Signature · 6 lines
Paul Kocialkowski <[email protected]>
Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx