tests: s/exit(EXIT_FAILURE)/igt_fail(1)/

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-13 12:49:46 +02:00
parent 907377da0e
commit a4cb8954b2
5 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -42,11 +42,11 @@ static void handle_bad(int ret, int expected, const char *desc)
if (ret != 0 && errno != expected) {
fprintf(stderr, "%s - errno was %d, but should have been %d\n",
desc, errno, expected);
exit(EXIT_FAILURE);
igt_fail(1);
} else if (ret == 0) {
fprintf(stderr, "%s - Command succeeded, but should have failed\n",
desc);
exit(EXIT_FAILURE);
igt_fail(1);
}
}
@@ -57,7 +57,7 @@ static uint64_t timer_query(int fd)
reg_read.offset = 0x2358;
if (drmIoctl(fd, REG_READ_IOCTL, &reg_read)) {
perror("positive test case failed: ");
exit(EXIT_FAILURE);
igt_fail(1);
}
return reg_read.val;
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
sleep(1);
if (timer_query(fd) == reg_read.val) {
fprintf(stderr, "Timer isn't moving, probably busted\n");
exit(EXIT_FAILURE);
igt_fail(1);
}
/* bad reg */