]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Don't ignore return result from test_perform.
authorDale Weiler <killfieldengine@gmail.com>
Wed, 30 Jan 2013 06:17:57 +0000 (06:17 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 30 Jan 2013 06:17:57 +0000 (06:17 +0000)
test.c

diff --git a/test.c b/test.c
index a7b02c7e53ee7aaa95abba520327dd610ee98651..be823246c5b80d3d659575e1ae90e5cf58ba694c 100644 (file)
--- 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;
 }