You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/03/15 01:36:28 UTC
[21/42] incubator-mynewt-core git commit: testutil: flush stdout
after each test result.
testutil: flush stdout after each test result.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/3af4ca4f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3af4ca4f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3af4ca4f
Branch: refs/heads/master
Commit: 3af4ca4fc71e019f3d73576bc08a1db3e64c9c9d
Parents: f7ac6fe
Author: Christopher Collins <cc...@gmail.com>
Authored: Thu Mar 10 16:58:51 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Thu Mar 10 16:59:17 2016 -0800
----------------------------------------------------------------------
libs/testutil/src/case.c | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3af4ca4f/libs/testutil/src/case.c
----------------------------------------------------------------------
diff --git a/libs/testutil/src/case.c b/libs/testutil/src/case.c
index a2d78ef..bea6efa 100644
--- a/libs/testutil/src/case.c
+++ b/libs/testutil/src/case.c
@@ -111,6 +111,7 @@ tu_case_write_fail_buf(void)
if (tu_config.tc_print_results) {
printf("[FAIL] %s/%s %s", tu_suite_name, tu_case_name, tu_case_buf);
+ fflush(stdout);
}
if (tu_config.tc_case_fail_cb != NULL) {
@@ -145,6 +146,7 @@ tu_case_write_pass_buf(void)
if (tu_case_buf_len > 0) {
printf("%s", tu_case_buf);
}
+ fflush(stdout);
}
tu_case_reported = 1;