Revert "lib/tinytest: Clean up test reporting in the presence of std..."
This reverts commit f4ed2dfa94
.
This lets tinytest work as it was originally designed. An alternate
solution for the reverted commit will be implemented in a future commit.
This commit is contained in:
parent
3078a4b2e2
commit
1605c7e584
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user