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)
}
}
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)
......
......@@ -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);
......
......@@ -301,5 +301,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -177,5 +177,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -208,5 +208,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -138,5 +138,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -306,5 +306,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -146,5 +146,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -236,5 +236,5 @@ main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -154,5 +154,5 @@ int main(int argc, char **argv)
close(fd);
return igt_retval();
igt_exit();
}
......@@ -515,5 +515,5 @@ int main(int argc, char **argv)
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