From 8fa2066d7e707787019ecda814442c4789840499 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 15 Jan 2014 23:59:52 +0100 Subject: tests/gem_gtt_hog: Use igt_simple_main Results in the compiler complaining about wrong exits and return values. Signed-off-by: Daniel Vetter --- tests/gem_gtt_hog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c index aa83b400..53d7dd7c 100644 --- a/tests/gem_gtt_hog.c +++ b/tests/gem_gtt_hog.c @@ -144,13 +144,12 @@ static void run(int child) exit(0); } -int main(int argc, char **argv) +igt_simple_main { struct timeval start, end; pid_t children[64]; int n; - igt_simple_init(); igt_skip_on_simulation(); gettimeofday(&start, NULL); @@ -172,6 +171,4 @@ int main(int argc, char **argv) gettimeofday(&end, NULL); printf("Time to execute %lu children: %7.3fms\n", ARRAY_SIZE(children), elapsed(&start, &end) / 1000); - - return 0; } -- cgit v1.2.3