diff --git a/tests/testgdate.c b/tests/testgdate.c index 18022bc74..9e2ace22f 100644 --- a/tests/testgdate.c +++ b/tests/testgdate.c @@ -8,6 +8,7 @@ #include "glib.h" #include +#include #include #include #include @@ -506,7 +507,7 @@ g_print ("testing %d years\n", n_check_years); g_print("\n%u tests passed, %u failed\n",passed, notpassed); - return 0; + return (notpassed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; }