[igt-dev] [PATCH i-g-t 33/36] kms_tv_load_detect: Nuke custom main function

Petri Latvala petri.latvala at intel.com
Thu May 23 12:27:24 UTC 2019


Signed-off-by: Petri Latvala <petri.latvala at intel.com>
---
 tests/kms_tv_load_detect.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/kms_tv_load_detect.c b/tests/kms_tv_load_detect.c
index 012d0629..89f587d5 100644
--- a/tests/kms_tv_load_detect.c
+++ b/tests/kms_tv_load_detect.c
@@ -26,15 +26,13 @@
 
 IGT_TEST_DESCRIPTION("Check tv load detection works correctly.");
 
-int main(int argc, char **argv)
+igt_main
 {
 	/* force the VGA output and test that it worked */
 	int drm_fd = 0;
 	drmModeRes *res;
 	drmModeConnector *tv_connector = NULL, *temp;
 
-	igt_subtest_init(argc, argv);
-
 	igt_fixture {
 		drm_fd = drm_open_driver_master(DRIVER_INTEL);
 
@@ -87,6 +85,4 @@ int main(int argc, char **argv)
 		drmModeFreeConnector(tv_connector);
 		close(drm_fd);
 	}
-
-	igt_exit();
 }
-- 
2.19.1



More information about the igt-dev mailing list