diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-18 23:11:21 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-18 23:11:21 -0800 |
| commit | b73794d8cd48804685248f6f7d57b831841bd620 (patch) | |
| tree | c307424196edc95875508f10b097b7afb8f2aed5 /tests/test.c | |
| parent | c6640e3bcfce9f3e3d4def60b0acb7ea782ab890 (diff) | |
| download | nng-b73794d8cd48804685248f6f7d57b831841bd620.tar.gz nng-b73794d8cd48804685248f6f7d57b831841bd620.tar.bz2 nng-b73794d8cd48804685248f6f7d57b831841bd620.zip | |
Minor bug fixes to test.h and co.
Diffstat (limited to 'tests/test.c')
| -rw-r--r-- | tests/test.c | 24 |
1 files changed, 0 insertions, 24 deletions
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. |
