mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +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:
@@ -114,8 +114,7 @@ int main(int argc, char **argv)
|
||||
gem_write(fd, handle, 0, batch, sizeof(batch));
|
||||
|
||||
for (reloc_ofs = 4096; reloc_ofs < batch_size; reloc_ofs += 4096)
|
||||
if (exec(fd, handle, reloc_ofs))
|
||||
igt_fail(1);
|
||||
igt_assert(exec(fd, handle, reloc_ofs) == 0);
|
||||
}
|
||||
|
||||
gem_close(fd, handle);
|
||||
|
||||
Reference in New Issue
Block a user