aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check.c
blob: 999da16accfb2d2acb8674a06c99d871817657c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdlib.h>
#include <glib.h>
#include <gmodule.h>
#include <check.h>

/* From check_util.c */
Suite *util_suite(void);

int main (void)
{
	int nf;
	SRunner *sr = srunner_create(util_suite());
	srunner_run_all (sr, CK_NORMAL);
	nf = srunner_ntests_failed(sr);
	srunner_free(sr);
	return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}