Ignore:
File:
1 edited

Legend:

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

    r2d11a7d8 r61cc94e  
    3838#include <unistd.h>
    3939#include <stdio.h>
    40 #include <string.h>
     40#include <str.h>
    4141#include "tester.h"
    4242
     
    5151#include "print/print3.def"
    5252#include "print/print4.def"
     53#include "print/print5.def"
    5354#include "console/console1.def"
    5455#include "stdio/stdio1.def"
     
    5657#include "fault/fault1.def"
    5758#include "fault/fault2.def"
     59#include "fault/fault3.def"
    5860#include "vfs/vfs1.def"
    5961#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"
    6466        {NULL, NULL, NULL, false}
    6567};
     
    6870{
    6971        /* Execute the test */
    70         char *ret = test->entry();
     72        const char *ret = test->entry();
    7173       
    7274        if (ret == NULL) {
     
    109111        }
    110112       
     113        unsigned int _len = (unsigned int) len;
     114        if ((_len != len) || (((int) _len) < 0)) {
     115                printf("Command length overflow\n");
     116                return;
     117        }
     118       
    111119        for (test = tests; test->name != NULL; test++)
    112                 printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
     120                printf("%-*s %s%s\n", _len, test->name, test->desc,
     121                    (test->safe ? "" : " (unsafe)"));
    113122       
    114         printf("%-*s Run all safe tests\n", len, "*");
     123        printf("%-*s Run all safe tests\n", _len, "*");
    115124}
    116125
Note: See TracChangeset for help on using the changeset viewer.