2012-01-28 19:54:10 +01:00
|
|
|
/* See LICENSE file for license and copyright information */
|
|
|
|
|
|
|
|
#include <check.h>
|
2012-03-06 11:42:42 +01:00
|
|
|
#include <stdlib.h>
|
2012-01-28 19:54:10 +01:00
|
|
|
|
|
|
|
Suite* suite_utils();
|
|
|
|
|
2012-03-06 11:42:42 +01:00
|
|
|
int main()
|
2012-01-28 19:54:10 +01:00
|
|
|
{
|
|
|
|
Suite* suite = NULL;
|
|
|
|
SRunner* suite_runner = NULL;
|
2012-03-06 11:42:42 +01:00
|
|
|
int number_failed = 0;
|
2012-01-28 19:54:10 +01:00
|
|
|
|
|
|
|
/* test utils */
|
|
|
|
suite = suite_utils();
|
|
|
|
suite_runner = srunner_create(suite);
|
|
|
|
srunner_run_all(suite_runner, CK_NORMAL);
|
2012-03-06 11:42:42 +01:00
|
|
|
number_failed += srunner_ntests_failed(suite_runner);
|
2012-01-28 19:54:10 +01:00
|
|
|
srunner_free(suite_runner);
|
|
|
|
|
2012-03-06 11:42:42 +01:00
|
|
|
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
2012-01-28 19:54:10 +01:00
|
|
|
}
|