Ignore:
File:
1 edited

Legend:

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

    r61cc94e r2d11a7d8  
    3838#include <unistd.h>
    3939#include <stdio.h>
    40 #include <str.h>
     40#include <string.h>
    4141#include "tester.h"
    4242
     
    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"
     
    5756#include "fault/fault1.def"
    5857#include "fault/fault2.def"
    59 #include "fault/fault3.def"
    6058#include "vfs/vfs1.def"
    6159#include "ipc/ping_pong.def"
     60#include "ipc/register.def"
     61#include "ipc/connect.def"
    6262#include "loop/loop1.def"
    6363#include "mm/malloc1.def"
    64 #include "hw/serial/serial1.def"
    65 #include "hw/misc/virtchar1.def"
    6664        {NULL, NULL, NULL, false}
    6765};
     
    7068{
    7169        /* Execute the test */
    72         const char *ret = test->entry();
     70        char *ret = test->entry();
    7371       
    7472        if (ret == NULL) {
     
    111109        }
    112110       
    113         unsigned int _len = (unsigned int) len;
    114         if ((_len != len) || (((int) _len) < 0)) {
    115                 printf("Command length overflow\n");
    116                 return;
    117         }
     111        for (test = tests; test->name != NULL; test++)
     112                printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
    118113       
    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, "*");
     114        printf("%-*s Run all safe tests\n", len, "*");
    124115}
    125116
Note: See TracChangeset for help on using the changeset viewer.