Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/tester.c

    r855e0d8 r19f857a  
    5151#include "print/print3.def"
    5252#include "print/print4.def"
    53 #include "print/print5.def"
    5453#include "console/console1.def"
    5554#include "stdio/stdio1.def"
     
    111110        }
    112111       
    113         unsigned int _len = (unsigned int) len;
    114         if ((_len != len) || (((int) _len) < 0)) {
    115                 printf("Command length overflow\n");
    116                 return;
    117         }
     112        for (test = tests; test->name != NULL; test++)
     113                printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
    118114       
    119         for (test = tests; test->name != NULL; test++)
    120                 printf("%-*s %s%s\n", _len, test->name, test->desc,
    121                     (test->safe ? "" : " (unsafe)"));
    122        
    123         printf("%-*s Run all safe tests\n", _len, "*");
     115        printf("%-*s Run all safe tests\n", len, "*");
    124116}
    125117
Note: See TracChangeset for help on using the changeset viewer.