In verbose mode, output the number and name of each test to stderr
before running it. End it with a carriage return so that any actual output will overwrite it. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@556 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
3a2fec89e2
commit
e9c697feb5
|
@ -97,6 +97,8 @@ main(int argc, char *argv[])
|
|||
/* run the tests */
|
||||
for (n = pass = fail = 0; t_plan[n] != NULL; ++n) {
|
||||
desc = t_plan[n]->desc ? t_plan[n]->desc : "no description";
|
||||
if (verbose)
|
||||
fprintf(stderr, " %d - %s\r", n + 1, desc);
|
||||
if ((*t_plan[n]->func)()) {
|
||||
printf("ok %d - %s\n", n + 1, desc);
|
||||
++pass;
|
||||
|
|
Loading…
Reference in New Issue