diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-18 21:31:43 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-18 21:31:43 -0800 |
| commit | 99dcb2df6ee30004b9fbac1cc2360c6e627dc449 (patch) | |
| tree | e2092158c1ab3f62881c66a9e5d3b66d742fa755 /tests/test.c | |
| parent | 260ce618d98c9ec732362ab82b2efeb2c412ac24 (diff) | |
| download | nng-99dcb2df6ee30004b9fbac1cc2360c6e627dc449.tar.gz nng-99dcb2df6ee30004b9fbac1cc2360c6e627dc449.tar.bz2 nng-99dcb2df6ee30004b9fbac1cc2360c6e627dc449.zip | |
Added support for test_reset(), better than cleanup or other hacks.
Diffstat (limited to 'tests/test.c')
| -rw-r--r-- | tests/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test.c b/tests/test.c index 1fb99113..ae4eab20 100644 --- a/tests/test.c +++ b/tests/test.c @@ -171,6 +171,7 @@ print_result(tctx_t *t) log_free(t->t_fatallog); } t = t->t_next; + memset(freeit, 0, sizeof (*freeit)); free(freeit); } } @@ -270,7 +271,6 @@ test_i_loop(test_ctx_t *ctx, int unwind) return (1); } } - if (!t->t_started) { t->t_started = 1; @@ -617,9 +617,9 @@ log_dump(tlog_t *log, const char *header, const char *color) return; } - printf("\n\n%s%s%s\n\n", color, header, color_none); + (void) printf("\n\n%s%s%s\n\n", color, header, color_none); for (s = STRTOK(log->l_buf, "\n"); s != NULL; s = STRTOK(NULL, "\n")) { - printf(" %s%s%s\n", color, s, color_none); + (void) printf(" %s%s%s\n", color, s, color_none); } } |
