From: Dale Weiler Date: Wed, 30 Jan 2013 06:17:57 +0000 (+0000) Subject: Don't ignore return result from test_perform. X-Git-Tag: before-library~188 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=835659ac485bb82476e6515101f97a912e3bf90b;p=xonotic%2Fgmqcc.git Don't ignore return result from test_perform. --- diff --git a/test.c b/test.c index a7b02c7..be82324 100644 --- a/test.c +++ b/test.c @@ -1165,7 +1165,7 @@ void task_schedualize(size_t *pad) { * * It expects con_init() was called before hand. */ -bool test_perform(const char *curdir) { +GMQCC_WARN bool test_perform(const char *curdir) { size_t pad[] = { 0, 0 }; @@ -1220,6 +1220,7 @@ static bool parsecmd(const char *optname, int *argc_, char ***argv_, char **out, } int main(int argc, char **argv) { + bool succeed = false; char *redirout = (char*)stdout; char *redirerr = (char*)stderr; @@ -1259,7 +1260,9 @@ int main(int argc, char **argv) { } } con_change(redirout, redirerr); - test_perform("tests"); + succeed = test_perform("tests"); util_meminfo(); - return 0; + + + return (succeed) ? EXIT_SUCCESS : EXIT_FAILURE; }