tests: run igt.cocci

Re-run with correct igt_fail rules. Again manually fixup missing
includes for igt_core.h.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-06-13 18:27:59 +02:00
parent 87042d671f
commit c9c554594e
14 changed files with 152 additions and 212 deletions
+2 -4
View File
@@ -44,10 +44,8 @@ static uint64_t timer_query(int fd)
struct local_drm_i915_reg_read reg_read;
reg_read.offset = 0x2358;
if (drmIoctl(fd, REG_READ_IOCTL, &reg_read)) {
perror("positive test case failed: ");
igt_fail(1);
}
igt_fail_on_f(drmIoctl(fd, REG_READ_IOCTL, &reg_read),
"positive test case failed: ");
return reg_read.val;
}