tests: s/return igt_retval();/igt_exit();/

Requested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-12 12:26:35 +02:00
parent 1caaf0a6b6
commit 6877877558
11 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -791,7 +791,7 @@ void igt_fail(int exitcode)
}
}
int igt_retval(void)
void igt_exit(void)
{
if (igt_only_list_subtests())
return 0;
@@ -800,11 +800,11 @@ int igt_retval(void)
assert(skipped_one || succeeded_one || failed_one);
if (failed_one)
return igt_exitcode;
exit(igt_exitcode);
else if (succeeded_one)
return 0;
exit(0);
else
return 77;
exit(77);
}
static bool env_set(const char *env_var, bool default_value)
+1 -1
View File
@@ -106,7 +106,7 @@ bool igt_only_list_subtests(void);
void igt_skip(void);
void igt_success(void);
void igt_fail(int exitcode) __attribute__((noreturn));
int igt_retval(void);
void igt_exit(void);
/* check functions which auto-skip tests by calling igt_skip() */
void gem_check_caching(int fd);