mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
testgdate: Exit with failure if there are not passed tests
This commit is contained in:
parent
c08d58d778
commit
d407b9e705
@ -8,6 +8,7 @@
|
|||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <time.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);
|
g_print("\n%u tests passed, %u failed\n",passed, notpassed);
|
||||||
|
|
||||||
return 0;
|
return (notpassed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user