diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-26 01:04:27 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-28 11:39:03 -0700 |
| commit | 204f7574126b4c988aafb4c93c0370f622869ace (patch) | |
| tree | 92eb502744e44b1c5d927f31eab4b47c15797198 /tests | |
| parent | d288eba0a5b1fb379a58e1fb6c16b149b6758b3d (diff) | |
| download | nng-204f7574126b4c988aafb4c93c0370f622869ace.tar.gz nng-204f7574126b4c988aafb4c93c0370f622869ace.tar.bz2 nng-204f7574126b4c988aafb4c93c0370f622869ace.zip | |
Flush output so we can get a better sense of when we hang/fail.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/convey.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/convey.c b/tests/convey.c index 2cb4e367..bfe836e4 100644 --- a/tests/convey.c +++ b/tests/convey.c @@ -436,6 +436,7 @@ conveyAssertFail(const char *cond, const char *file, int line) convey_emit_color(convey_yellow); (void) fputs(convey_sym_fail, stdout); convey_emit_color(convey_nocolor); + (void) fflush(stdout); } if (t->ctx_root != t) { t->ctx_root->ctx_fail++; @@ -462,6 +463,7 @@ conveyAssertPass(const char *cond, const char *file, int line) convey_emit_color(convey_green); (void) fputs(convey_sym_pass, stdout); convey_emit_color(convey_nocolor); + (void) fflush(stdout); } convey_logf(t->ctx_dbglog, "* %s (%s:%d) (Passed): %s\n", t->ctx_name, file, line, cond); @@ -477,6 +479,7 @@ conveyAssertSkip(const char *cond, const char *file, int line) convey_emit_color(convey_yellow); (void) fputs(convey_sym_pass, stdout); convey_emit_color(convey_nocolor); + (void) fflush(stdout); } convey_logf(t->ctx_dbglog, "* %s (%s:%d) (Skip): %s\n", t->ctx_name, file, line, cond); |
