mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-26 01:06:23 +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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
igt_simple_main
|
||||||
{
|
{
|
||||||
struct timeval start, end;
|
struct timeval start, end;
|
||||||
pid_t children[64];
|
pid_t children[64];
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
igt_simple_init();
|
|
||||||
igt_skip_on_simulation();
|
igt_skip_on_simulation();
|
||||||
|
|
||||||
gettimeofday(&start, NULL);
|
gettimeofday(&start, NULL);
|
||||||
@ -172,6 +171,4 @@ int main(int argc, char **argv)
|
|||||||
gettimeofday(&end, NULL);
|
gettimeofday(&end, NULL);
|
||||||
printf("Time to execute %lu children: %7.3fms\n",
|
printf("Time to execute %lu children: %7.3fms\n",
|
||||||
ARRAY_SIZE(children), elapsed(&start, &end) / 1000);
|
ARRAY_SIZE(children), elapsed(&start, &end) / 1000);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user