summaryrefslogtreecommitdiff
path: root/tests/gem_fence_thrash.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-25 14:36:59 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-25 14:37:07 +0200
commitf3c54d0cb4744af9d58b5be45f574b625bbc8231 (patch)
tree9c4bd1af155ee0b1b51382a617109aa2e5f119b2 /tests/gem_fence_thrash.c
parent88ad6d7be8ab5741b7019a535952145c96577c9c (diff)
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>
Diffstat (limited to 'tests/gem_fence_thrash.c')
-rw-r--r--tests/gem_fence_thrash.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c
index 8c963afe..be196b09 100644
--- a/tests/gem_fence_thrash.c
+++ b/tests/gem_fence_thrash.c
@@ -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);
}
}