mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 14:45:46 +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:
@@ -128,20 +128,16 @@ _bo_write_verify(struct test *t)
|
||||
for (i = 0; i < dwords; i++) {
|
||||
a[i] = i;
|
||||
v = a[i];
|
||||
if (v != i) {
|
||||
printf("tiling %s: write failed at %d (%x)\n",
|
||||
tile_str[t->tiling], i, v);
|
||||
igt_fail(-1);
|
||||
}
|
||||
igt_assert_f(v == i,
|
||||
"tiling %s: write failed at %d (%x)\n",
|
||||
tile_str[t->tiling], i, v);
|
||||
}
|
||||
|
||||
for (i = 0; i < dwords; i++) {
|
||||
v = a[i];
|
||||
if (v != i) {
|
||||
printf("tiling %s: verify failed at %d (%x)\n",
|
||||
tile_str[t->tiling], i, v);
|
||||
igt_fail(-2);
|
||||
}
|
||||
igt_assert_f(v == i,
|
||||
"tiling %s: verify failed at %d (%x)\n",
|
||||
tile_str[t->tiling], i, v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user