mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 16:56:35 +00:00
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:
parent
eb1fddc057
commit
8fa2066d7e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user