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

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


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

diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c
index 04b15ddd..39538767 100644
--- a/tests/prime_mmap_coherency.c
+++ b/tests/prime_mmap_coherency.c
@@ -279,10 +279,8 @@ static void test_ioctl_errors(void)
 	}
 }
 
-int main(int argc, char **argv)
+igt_main
 {
-	igt_subtest_init(argc, argv);
-
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
@@ -321,6 +319,4 @@ int main(int argc, char **argv)
 
 		close(fd);
 	}
-
-	igt_exit();
 }
-- 
2.19.1



More information about the igt-dev mailing list