From b73794d8cd48804685248f6f7d57b831841bd620 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 18 Dec 2016 23:11:21 -0800 Subject: Minor bug fixes to test.h and co. --- tests/test.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tests/test.c') diff --git a/tests/test.c b/tests/test.c index 81dfc58f..a133b677 100644 --- a/tests/test.c +++ b/tests/test.c @@ -403,30 +403,6 @@ test_i_assert_skip(const char *cond, const char *file, int line) t->t_name, file, line); } -void -test_i_assert_fatal(const char *cond, const char *file, int line) -{ - tctx_t *t = get_ctx(); - nasserts++; - if (verbose) { - (void) printf("%s%s%s", color_red, sym_fail, color_none); - } - if (t->t_root != t) { - t->t_root->t_fatal++; - } - color_asserts = color_red; - t->t_fail++; - t->t_done = 1; /* This forces an end */ - log_printf(t->t_fatallog, "* %s (Fatal Assertion Failed)\n", t->t_name); - log_printf(t->t_fatallog, "File: %s\n", file); - log_printf(t->t_fatallog, "Line: %d\n", line); - log_printf(t->t_fatallog, "Test: %s\n\n", cond); - log_printf(t->t_debuglog, "* %s (%s:%d) (FAILED)\n", - t->t_name, file, line); - - longjmp(*t->t_jmp, 1); -} - /* * Performance counters. Really we just want to start and stop timers, to * measure elapsed time in usec. -- cgit v1.2.3-70-g09d2