Changeset 46c20c8 in mainline for uspace/app/tester/tester.c


Ignore:
Timestamp:
2010-11-26T20:08:10Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (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

    rfb150d78 r46c20c8  
    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"
     
    6364#include "loop/loop1.def"
    6465#include "mm/malloc1.def"
     66#include "hw/serial/serial1.def"
    6567        {NULL, NULL, NULL, false}
    6668};
     
    6971{
    7072        /* Execute the test */
    71         char *ret = test->entry();
     73        const char *ret = test->entry();
    7274       
    7375        if (ret == NULL) {
     
    110112        }
    111113       
     114        unsigned int _len = (unsigned int) len;
     115        if ((_len != len) || (((int) _len) < 0)) {
     116                printf("Command length overflow\n");
     117                return;
     118        }
     119       
    112120        for (test = tests; test->name != NULL; test++)
    113                 printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)"));
     121                printf("%-*s %s%s\n", _len, test->name, test->desc,
     122                    (test->safe ? "" : " (unsafe)"));
    114123       
    115         printf("%-*s Run all safe tests\n", len, "*");
     124        printf("%-*s Run all safe tests\n", _len, "*");
    116125}
    117126
Note: See TracChangeset for help on using the changeset viewer.