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>
This commit is contained in:
Daniel Vetter
2013-09-25 14:36:59 +02:00
parent 88ad6d7be8
commit f3c54d0cb4
25 changed files with 146 additions and 363 deletions
+2 -4
View File
@@ -256,10 +256,8 @@ static void do_test(int fd, bool faulting_reloc)
/* Only check at the end to avoid unnecessary synchronous behaviour. */
for (i = 0; i < NUM_TARGET_BOS; i++) {
drm_intel_bo_get_subdata(pc_target_bo[i], 0, 4, &test);
if (test != 0xdeadbeef) {
fprintf(stderr, "mismatch in buffer %i: 0x%08x instead of 0xdeadbeef\n", i, test);
igt_fail(1);
}
igt_assert_f(test == 0xdeadbeef,
"mismatch in buffer %i: 0x%08x instead of 0xdeadbeef\n", i, test);
drm_intel_bo_unreference(pc_target_bo[i]);
}