From 204f7574126b4c988aafb4c93c0370f622869ace Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 26 Aug 2017 01:04:27 -0700 Subject: Flush output so we can get a better sense of when we hang/fail. --- tests/convey.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3-70-g09d2