diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-15 23:59:52 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-15 23:59:52 +0100 |
commit | 8fa2066d7e707787019ecda814442c4789840499 (patch) | |
tree | 0401b111a8c98e6e00cfa88e4b3c5ec0eaacd075 /tests/gem_gtt_hog.c | |
parent | eb1fddc057b363225153f86cf419f42d7d83469d (diff) |
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>
Diffstat (limited to 'tests/gem_gtt_hog.c')
-rw-r--r-- | tests/gem_gtt_hog.c | 5 |
1 files changed, 1 insertions, 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; } |