test/main.c

changeset 252
6342cbbd1922
parent 251
fae240d633fc
child 253
e19825a1430a
--- a/test/main.c	Tue Oct 17 16:15:41 2017 +0200
+++ b/test/main.c	Wed Oct 18 12:03:44 2017 +0200
@@ -232,9 +232,12 @@
 
         ucx_test_run(suite, stdout);
         fflush(stdout);
+        
+        int exit_code = suite->failure > 0 ? EXIT_FAILURE: EXIT_SUCCESS;
+        
         ucx_test_suite_free(suite);
         
-        return EXIT_SUCCESS;
+        return exit_code;
     } else {
         ucx_test_suite_free(suite);
         return EXIT_FAILURE;

mercurial