tests/gem_gtt_hog: Use igt_simple_main

Results in the compiler complaining about wrong exits and return values.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2014-01-15 23:59:52 +01:00
parent eb1fddc057
commit 8fa2066d7e

View File

@ -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;
}