1#include <stdlib.h>
2#include "check_suites.h"
3
4#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 13
5void suite_add_test(Suite *s, TFun tf, const char *name)
6#else
7void suite_add_test(Suite *s, const TTest *tt, const char *name)
8#endif
9{
10	TCase *tc = tcase_create(name);
11
12#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 13
13	tcase_add_test(tc, tf);
14#else
15	tcase_add_test(tc, tt);
16#endif
17	suite_add_tcase(s, tc);
18}
19
20int main(void)
21{
22	int nf;
23	SRunner *sr = srunner_create(public_suite());
24	srunner_set_xml(sr, "CheckLog_xcb.xml");
25	srunner_run_all(sr, CK_NORMAL);
26	nf = srunner_ntests_failed(sr);
27	srunner_free(sr);
28	return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
29}
30