mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
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>
This commit is contained in:
@@ -128,11 +128,9 @@ scratch_buf_check(data_t *data, struct igt_buf *buf, int x, int y,
|
||||
gem_read(data->fd, buf->bo->handle, 0,
|
||||
data->linear, sizeof(data->linear));
|
||||
val = data->linear[y * WIDTH + x];
|
||||
if (val != color) {
|
||||
fprintf(stderr, "Expected 0x%08x, found 0x%08x at (%d,%d)\n",
|
||||
color, val, x, y);
|
||||
abort();
|
||||
}
|
||||
igt_assert_f(val == color,
|
||||
"Expected 0x%08x, found 0x%08x at (%d,%d)\n",
|
||||
color, val, x, y);
|
||||
}
|
||||
|
||||
static void copy(data_t *data)
|
||||
|
||||
Reference in New Issue
Block a user