diff options
Diffstat (limited to 'test/testmain.c')
-rw-r--r-- | test/testmain.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/test/testmain.c b/test/testmain.c index 9a6b257..38a4ace 100644 --- a/test/testmain.c +++ b/test/testmain.c @@ -15,18 +15,6 @@ #define UNUSED(x) ((x) = (x)) #endif -/* This means that assertion failures are silent in tests */ -#ifndef NDEBUG -void __assert_fail(const char *__assertion, const char *__file, - unsigned int __line, const char *__function) { - (void)__assertion; - (void)__file; - (void)__line; - (void)__function; - abort(); -} -#endif - int main(int argc, char **argv) { @@ -35,16 +23,16 @@ main(int argc, char **argv) UNUSED(argc); UNUSED(argv); - + sr = srunner_create(suite_create("Test suite for libnslog")); - + nslog_basic_suite(sr); - + srunner_set_fork_status(sr, CK_FORK); srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed(sr); - + srunner_free(sr); - + return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } |