mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +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:
@@ -105,13 +105,11 @@ igt_simple_main
|
||||
+ half*tile_height + ofs;
|
||||
uint32_t val = data[data_i];
|
||||
|
||||
if (ptr[i] != val) {
|
||||
printf("mismatch at %i, row=%i, half=%i, ofs=%i\n",
|
||||
i, row, half, ofs);
|
||||
printf("read: 0x%08x, expected: 0x%08x\n",
|
||||
ptr[i], val);
|
||||
igt_assert(0);
|
||||
}
|
||||
igt_assert_f(ptr[i] == val,
|
||||
"mismatch at %i, row=%i, half=%i, ofs=%i, "
|
||||
"read: 0x%08x, expected: 0x%08x\n",
|
||||
i, row, half, ofs,
|
||||
ptr[i], val);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user