mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
tests: use igt_assert/igt_require more
With the new _f variants we can replace almost all of them. Also remove a ton of checks for argc != 1, they're a bit useless ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -97,8 +97,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
|
||||
struct timeval start, end;
|
||||
|
||||
gettimeofday(&start, NULL);
|
||||
if (exec(fd, handle, count, ring_id))
|
||||
igt_fail(1);
|
||||
igt_assert(exec(fd, handle, count, ring_id) == 0);
|
||||
gettimeofday(&end, NULL);
|
||||
printf("Time to exec x %d: %7.3fµs (ring=%s)\n",
|
||||
count, elapsed(&start, &end, count), ring_name);
|
||||
|
||||
Reference in New Issue
Block a user