Branch: Tag:

2011-04-09

2011-04-09 22:11:09 by Martin Stjernholm <mast@lysator.liu.se>

Some testsuite logging adjustments.

3299:   int errors;   int tests;    - #define indent(X) (X) - #define FMT "%d:%d " -  +    int maxdepth; - string status_prefix=""; +       class Codec {    string nameof(mixed x)
3336:    if(!(tests & 63))    {    __signal_watchdog(); -  if (_verbose == 1) -  log_status("%s" FMT, status_prefix,maxdepth,tests); +  log_status("Testing vtables and scope access: %d:%d",maxdepth,tests);    }       string test=code*"\n"+"\n"
3398:    {    low_generate(depth,    code[..e-1]+({ -  sprintf("class C%d {\n%s\n};",cnt,indent(code[e..]*"\n")) +  sprintf("class C%d {\n%s\n};",cnt,code[e..]*"\n")    }),    sprintf("C%d()->%s",cnt,acc),    ans,cnt+1);
3418:      array(int) a()   { -  log_status("Testing vtables and scope access.\n"); -  +     int total_tests;    for(maxdepth=1;maxdepth<9 && !errors;maxdepth++)    {
3428:    "X",    "X",0);    -  status_prefix+=sprintf(FMT,maxdepth,tests); -  if (_verbose == 1) -  log_status(status_prefix); +     total_tests+=tests;    tests=0;    }