diff options
author | David Lechner <david@pybricks.com> | 2019-12-18 12:42:34 -0600 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-19 17:53:46 +1100 |
commit | 1605c7e5840cf44a11a8e38150be8bb7ce6645d5 (patch) | |
tree | 68d1b22b6ca64e3db8cb28a0cd5d10de77b7a551 /lib/tinytest/tinytest.c | |
parent | 3078a4b2e233a7c224cd4f337b8fadf5bf53257f (diff) |
Revert "lib/tinytest: Clean up test reporting in the presence of std..."
This reverts commit f4ed2dfa942339dc1f174e8a83ff0d41073f1972.
This lets tinytest work as it was originally designed. An alternate
solution for the reverted commit will be implemented in a future commit.
Diffstat (limited to 'lib/tinytest/tinytest.c')
-rw-r--r-- | lib/tinytest/tinytest.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/tinytest/tinytest.c b/lib/tinytest/tinytest.c index 01772f3f8..1ef957d31 100644 --- a/lib/tinytest/tinytest.c +++ b/lib/tinytest/tinytest.c @@ -234,9 +234,8 @@ testcase_run_one(const struct testgroup_t *group, return SKIP; } - printf("# starting %s%s\n", group->prefix, testcase->name); if (opt_verbosity>0 && !opt_forked) { - //printf("%s%s: ", group->prefix, testcase->name); + printf("%s%s: ", group->prefix, testcase->name); } else { if (opt_verbosity==0) printf("."); cur_test_prefix = group->prefix; @@ -253,7 +252,6 @@ testcase_run_one(const struct testgroup_t *group, outcome = testcase_run_bare_(testcase); } - printf("%s%s: ", group->prefix, testcase->name); if (outcome == OK) { ++n_ok; if (opt_verbosity>0 && !opt_forked) @@ -265,8 +263,7 @@ testcase_run_one(const struct testgroup_t *group, } else { ++n_bad; if (!opt_forked) - //printf("\n [%s FAILED]\n", testcase->name); - puts("FAILED"); + printf("\n [%s FAILED]\n", testcase->name); } if (opt_forked) { |