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

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


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

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 8c17c8da..d7c1f9cf 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1481,7 +1481,7 @@ static void test_nonblocking_read(int in)
 	close(fd);
 }
 
-int main(int argc, char **argv)
+igt_main
 {
 	struct {
 		int duration;
@@ -1530,8 +1530,6 @@ int main(int argc, char **argv)
 	};
 	int i;
 
-	igt_subtest_init(argc, argv);
-
 	igt_fixture {
 		drm_fd = drm_open_driver_master(DRIVER_ANY);
 
@@ -1591,11 +1589,4 @@ int main(int argc, char **argv)
 			run_pair(tests[i].duration, tests[i].flags);
 	}
 	igt_stop_signal_helper();
-
-	/*
-	 * Let drm_fd leak, since it's needed by the dpms restore
-	 * exit_handler and igt_exit() won't return.
-	 */
-
-	igt_exit();
 }
-- 
2.19.1



More information about the igt-dev mailing list