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

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


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

diff --git a/tests/kms_psr2_su.c b/tests/kms_psr2_su.c
index b9a57582..a9f675d1 100644
--- a/tests/kms_psr2_su.c
+++ b/tests/kms_psr2_su.c
@@ -228,12 +228,10 @@ static void cleanup(data_t *data)
 	igt_remove_fb(data->drm_fd, &data->fb[0]);
 }
 
-int main(int argc, char *argv[])
+igt_main
 {
 	data_t data = {};
 
-	igt_subtest_init_parse_opts(&argc, argv, "", NULL,
-				    NULL, NULL, NULL);
 	igt_skip_on_simulation();
 
 	igt_fixture {
@@ -287,6 +285,4 @@ int main(int argc, char *argv[])
 		drm_intel_bufmgr_destroy(data.bufmgr);
 		display_fini(&data);
 	}
-
-	igt_exit();
 }
-- 
2.19.1



More information about the igt-dev mailing list