summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@linux.intel.com>2017-06-12 17:39:35 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-06-13 15:26:30 +0300
commit5d494bdaec4280ff841baa4b0bdd61a0bb7816c9 (patch)
treed8ead8a62fd1204ea8f799e557bf4d33598c9299 /tests
parenteeeb304a00166757954ab0ebbbcaa405db8c0aeb (diff)
tests/chamelium: Close DRM file descriptor after tests
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> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/chamelium.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/chamelium.c b/tests/chamelium.c
index dc631161..2e14ccb9 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -747,4 +747,8 @@ igt_main
connector_subtest("vga-hpd-without-ddc", VGA)
test_hpd_without_ddc(&data, port);
}
+
+ igt_fixture {
+ close(data.drm_fd);
+ }
}