summaryrefslogtreecommitdiff
path: root/tests/gem_tiled_blits.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 09:56:53 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 09:56:53 +0200
commit0b7ce4ac2929ea56dfde508d551163a5304c66d8 (patch)
tree7af13f919437cc28ab61dbae3fee42a159fcfb6f /tests/gem_tiled_blits.c
parente624fa8a2e1a31494c6e47a65e378e480882422d (diff)
tests: Use igt macros more
Often just folding together of the common if (cond) printf; abort|igt_skip|igt_fail; pattern. But in a few cases I've ripped out more since the igt macros will already print the condition and errno. A few tests where more work (like ripping out return codes en masse) is needed left as-is. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_tiled_blits.c')
-rw-r--r--tests/gem_tiled_blits.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/gem_tiled_blits.c b/tests/gem_tiled_blits.c
index ac701344..cb135ce4 100644
--- a/tests/gem_tiled_blits.c
+++ b/tests/gem_tiled_blits.c
@@ -105,12 +105,10 @@ check_bo(drm_intel_bo *bo, uint32_t start_val)
linear = linear_bo->virtual;
for (i = 0; i < 1024 * 1024 / 4; i++) {
- if (linear[i] != start_val) {
- fprintf(stderr, "Expected 0x%08x, found 0x%08x "
- "at offset 0x%08x\n",
- start_val, linear[i], i * 4);
- abort();
- }
+ igt_assert_f(linear[i] == start_val,
+ "Expected 0x%08x, found 0x%08x "
+ "at offset 0x%08x\n",
+ start_val, linear[i], i * 4);
start_val++;
}
drm_intel_bo_unmap(linear_bo);