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

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)

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);

View File

@ -301,5 +301,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -177,5 +177,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -208,5 +208,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -138,5 +138,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -306,5 +306,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -146,5 +146,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -236,5 +236,5 @@ main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -154,5 +154,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}

View File

@ -515,5 +515,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}