mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
testgdate: Exit with failure if there are not passed tests
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "glib.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
#include <time.h>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user