Changeset eb522e8 in mainline for uspace/app/tester/tester.c


Ignore:
Timestamp:
2011-06-01T08:43:42Z (15 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    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"
     
    5960#include "vfs/vfs1.def"
    6061#include "ipc/ping_pong.def"
    61 #include "ipc/register.def"
    62 #include "ipc/connect.def"
    6362#include "loop/loop1.def"
    6463#include "mm/malloc1.def"
     64#include "mm/malloc2.def"
     65#include "mm/mapping1.def"
     66#include "hw/serial/serial1.def"
     67#include "hw/misc/virtchar1.def"
     68#include "devs/devman1.def"
    6569        {NULL, NULL, NULL, false}
    6670};
     
    110114        }
    111115       
     116        unsigned int _len = (unsigned int) len;
     117        if ((_len != len) || (((int) _len) < 0)) {
     118                printf("Command length overflow\n");
     119                return;
     120        }
     121       
    112122        for (test = tests; test->name != NULL; test++)
    113                 printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
     123                printf("%-*s %s%s\n", _len, test->name, test->desc,
     124                    (test->safe ? "" : " (unsafe)"));
    114125       
    115         printf("%-*s Run all safe tests\n", len, "*");
     126        printf("%-*s Run all safe tests\n", _len, "*");
    116127}
    117128
Note: See TracChangeset for help on using the changeset viewer.