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
+2 -2
View File
@@ -66,11 +66,11 @@ static void handle_bad(int ret, int lerrno, int expected, const char *desc)
if (ret != 0 && lerrno != expected) {
fprintf(stderr, "%s - errno was %d, but should have been %d\n",
desc, lerrno, 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);
}
}