File: check_all.c

package info (click to toggle)
libxcb 1.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,472 kB
  • sloc: sh: 4,592; ansic: 3,262; python: 2,520; makefile: 429; perl: 85
file content (29 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdlib.h>
#include "check_suites.h"

#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 13
void suite_add_test(Suite *s, TFun tf, const char *name)
#else
void suite_add_test(Suite *s, const TTest *tt, const char *name)
#endif
{
	TCase *tc = tcase_create(name);

#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 13
	tcase_add_test(tc, tf);
#else
	tcase_add_test(tc, tt);
#endif
	suite_add_tcase(s, tc);
}

int main(void)
{
	int nf;
	SRunner *sr = srunner_create(public_suite());
	srunner_set_xml(sr, "CheckLog_xcb.xml");
	srunner_run_all(sr, CK_NORMAL);
	nf = srunner_ntests_failed(sr);
	srunner_free(sr);
	return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}