Changeset 855e0d8 in mainline


Ignore:
Timestamp:
2010-11-26T01:10:11Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5587cf7
Parents:
d16fc78
Message:

add print5 test

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rd16fc78 r855e0d8  
    313313                test/print/print3.c \
    314314                test/print/print4.c \
     315                test/print/print5.c \
    315316                test/thread/thread1.c
    316317       
  • kernel/test/test.c

    rd16fc78 r855e0d8  
    5757#include <print/print3.def>
    5858#include <print/print4.def>
     59#include <print/print5.def>
    5960#include <thread/thread1.def>
    6061        {
  • kernel/test/test.h

    rd16fc78 r855e0d8  
    7676extern const char *test_print3(void);
    7777extern const char *test_print4(void);
     78extern const char *test_print5(void);
    7879extern const char *test_thread1(void);
    7980
  • uspace/app/tester/Makefile

    rd16fc78 r855e0d8  
    3838        print/print3.c \
    3939        print/print4.c \
     40        print/print5.c \
    4041        console/console1.c \
    4142        stdio/stdio1.c \
  • uspace/app/tester/tester.c

    rd16fc78 r855e0d8  
    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"
     
    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
  • uspace/app/tester/tester.h

    rd16fc78 r855e0d8  
    6868extern const char *test_print3(void);
    6969extern const char *test_print4(void);
     70extern const char *test_print5(void);
    7071extern const char *test_console1(void);
    7172extern const char *test_stdio1(void);
Note: See TracChangeset for help on using the changeset viewer.