source: tests/check.c @ c2fa827

Last change on this file since c2fa827 was c2fa827, checked in by Jelmer Vernooij <jelmer@…>, at 2006-06-16T11:48:52Z

Add unit testing infrastructure.

  • Property mode set to 100644
File size: 338 bytes
Line 
1#include <stdlib.h>
2#include <glib.h>
3#include <gmodule.h>
4#include <check.h>
5
6/* From check_util.c */
7Suite *util_suite(void);
8
9int main (void)
10{
11        int nf;
12        SRunner *sr = srunner_create(util_suite());
13        srunner_run_all (sr, CK_NORMAL);
14        nf = srunner_ntests_failed(sr);
15        srunner_free(sr);
16        return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
17}
Note: See TracBrowser for help on using the repository browser.