Changeset 973ef9fc in mainline for uspace/app/tester/tester.c


Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (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:

Merge mainline changes.

File:
1 edited

Legend:

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

    r1bfd3d3 r973ef9fc  
    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 "hw/serial/serial1.def"
     65#include "hw/misc/virtchar1.def"
    6566        {NULL, NULL, NULL, false}
    6667};
     
    110111        }
    111112       
     113        unsigned int _len = (unsigned int) len;
     114        if ((_len != len) || (((int) _len) < 0)) {
     115                printf("Command length overflow\n");
     116                return;
     117        }
     118       
    112119        for (test = tests; test->name != NULL; test++)
    113                 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)"));
    114122       
    115         printf("%-*s Run all safe tests\n", len, "*");
     123        printf("%-*s Run all safe tests\n", _len, "*");
    116124}
    117125
Note: See TracChangeset for help on using the changeset viewer.