Changeset 556 in openpam


Ignore:
Timestamp:
Apr 2, 2012, 9:59:53 AM (3 years ago)
Author:
des
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/t_main.c

    r555 r556  
    9898        for (n = pass = fail = 0; t_plan[n] != NULL; ++n) { 
    9999                desc = t_plan[n]->desc ? t_plan[n]->desc : "no description"; 
     100                if (verbose) 
     101                        fprintf(stderr, " %d - %s\r", n + 1, desc); 
    100102                if ((*t_plan[n]->func)()) { 
    101103                        printf("ok %d - %s\n", n + 1, desc); 
Note: See TracChangeset for help on using the changeset viewer.