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:
Daniel Vetter
2014-05-14 09:56:53 +02:00
parent e624fa8a2e
commit 0b7ce4ac29
30 changed files with 131 additions and 288 deletions
+5 -7
View File
@@ -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);
}