Commit c2e262ab authored by Sebastian Ramacher's avatar Sebastian Ramacher

The test suite needs to exit with non-zero if a test fails.

parent f30591b9
/* See LICENSE file for license and copyright information */
#include <check.h>
#include <girara/macros.h>
#include <stdlib.h>
Suite* suite_utils();
int main(int UNUSED(argc), char *UNUSED(argv[]))
int main()
Suite* suite = NULL;
SRunner* suite_runner = NULL;
int number_failed = 0;
/* test utils */
suite = suite_utils();
suite_runner = srunner_create(suite);
srunner_run_all(suite_runner, CK_NORMAL);
number_failed += srunner_ntests_failed(suite_runner);
return 0;
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment