Commit 68778775 authored by Daniel Vetter's avatar Daniel Vetter

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

Requested-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 1caaf0a6
...@@ -791,7 +791,7 @@ void igt_fail(int exitcode) ...@@ -791,7 +791,7 @@ void igt_fail(int exitcode)
} }
} }
int igt_retval(void) void igt_exit(void)
{ {
if (igt_only_list_subtests()) if (igt_only_list_subtests())
return 0; return 0;
...@@ -800,11 +800,11 @@ int igt_retval(void) ...@@ -800,11 +800,11 @@ int igt_retval(void)
assert(skipped_one || succeeded_one || failed_one); assert(skipped_one || succeeded_one || failed_one);
if (failed_one) if (failed_one)
return igt_exitcode; exit(igt_exitcode);
else if (succeeded_one) else if (succeeded_one)
return 0; exit(0);
else else
return 77; exit(77);
} }
static bool env_set(const char *env_var, bool default_value) static bool env_set(const char *env_var, bool default_value)
......
...@@ -106,7 +106,7 @@ bool igt_only_list_subtests(void); ...@@ -106,7 +106,7 @@ bool igt_only_list_subtests(void);
void igt_skip(void); void igt_skip(void);
void igt_success(void); void igt_success(void);
void igt_fail(int exitcode) __attribute__((noreturn)); 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() */ /* check functions which auto-skip tests by calling igt_skip() */
void gem_check_caching(int fd); void gem_check_caching(int fd);
......
...@@ -301,5 +301,5 @@ int main(int argc, char **argv) ...@@ -301,5 +301,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -177,5 +177,5 @@ int main(int argc, char **argv) ...@@ -177,5 +177,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -208,5 +208,5 @@ int main(int argc, char **argv) ...@@ -208,5 +208,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -138,5 +138,5 @@ int main(int argc, char **argv) ...@@ -138,5 +138,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -306,5 +306,5 @@ int main(int argc, char **argv) ...@@ -306,5 +306,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -146,5 +146,5 @@ int main(int argc, char **argv) ...@@ -146,5 +146,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -236,5 +236,5 @@ main(int argc, char **argv) ...@@ -236,5 +236,5 @@ main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -154,5 +154,5 @@ int main(int argc, char **argv) ...@@ -154,5 +154,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
...@@ -515,5 +515,5 @@ int main(int argc, char **argv) ...@@ -515,5 +515,5 @@ int main(int argc, char **argv)
close(fd); close(fd);
return igt_retval(); igt_exit();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment