mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +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:
@@ -138,11 +138,9 @@ main(int argc, char **argv)
|
||||
/* Check the target bo's contents. */
|
||||
data = gem_mmap(fd, handle_target, sizeof(linear), PROT_READ | PROT_WRITE);
|
||||
for (j = 0; j < WIDTH*HEIGHT; j++)
|
||||
if (data[j] != j) {
|
||||
fprintf(stderr, "mismatch at %i: %i\n",
|
||||
j, data[j]);
|
||||
igt_fail(1);
|
||||
}
|
||||
igt_assert_f(data[j] == j,
|
||||
"mismatch at %i: %i\n",
|
||||
j, data[j]);
|
||||
munmap(data, sizeof(linear));
|
||||
|
||||
/* Leak both bos so that we use all of system mem! */
|
||||
|
||||
Reference in New Issue
Block a user