Changes in / [3fea752:182487c6] in mainline


Ignore:
Files:
15 added
19 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r3fea752 r182487c6  
    9090uspace/app/bithenge/bithenge
    9191uspace/app/blkdump/blkdump
     92uspace/app/bnchmark/bnchmark
    9293uspace/app/contacts/contacts
    9394uspace/app/corecfg/corecfg
     
    106107uspace/app/getterm/getterm
    107108uspace/app/gunzip/gunzip
    108 uspace/app/hbench/hbench
    109109uspace/app/inet/inet
    110110uspace/app/init/init
     
    131131uspace/app/nterm/nterm
    132132uspace/app/pci/pci
     133uspace/app/perf/perf
    133134uspace/app/ping/ping
    134135uspace/app/ping6/ping6
     
    172173uspace/dist/app/bithenge
    173174uspace/dist/app/blkdump
     175uspace/dist/app/bnchmark
    174176uspace/dist/app/corecfg
    175177uspace/dist/app/cpptest
  • boot/Makefile.common

    r3fea752 r182487c6  
    181181        bithenge \
    182182        blkdump \
     183        bnchmark \
    183184        contacts \
    184185        corecfg \
     
    191192        fdisk \
    192193        gunzip \
    193         hbench \
    194194        inet \
    195195        kill \
     
    205205        mkmfs \
    206206        nic \
     207        perf \
    207208        sbi \
    208209        sportdmp \
  • uspace/Makefile

    r3fea752 r182487c6  
    3838        app/bithenge \
    3939        app/blkdump \
     40        app/bnchmark \
    4041        app/contacts \
    4142        app/corecfg \
     
    5051        app/getterm \
    5152        app/gunzip \
    52         app/hbench \
    5353        app/init \
    5454        app/inet \
     
    6868        app/nterm \
    6969        app/pci \
     70        app/perf \
    7071        app/redir \
    7172        app/sbi \
  • uspace/app/tester/tester.c

    r3fea752 r182487c6  
    3535 */
    3636
    37 #include <assert.h>
    3837#include <stdio.h>
    3938#include <stddef.h>
     
    4140#include <str.h>
    4241#include <io/log.h>
    43 #include <types/casting.h>
    4442#include "tester.h"
    4543
     
    146144        }
    147145
    148         assert(can_cast_size_t_to_int(len) && "test name length overflow");
     146        unsigned int _len = (unsigned int) len;
     147        if ((_len != len) || (((int) _len) < 0)) {
     148                printf("Command length overflow\n");
     149                return;
     150        }
    149151
    150152        for (test = tests; test->name != NULL; test++)
    151                 printf("%-*s %s%s\n", (int) len, test->name, test->desc,
     153                printf("%-*s %s%s\n", _len, test->name, test->desc,
    152154                    (test->safe ? "" : " (unsafe)"));
    153155
    154         printf("%-*s Run all safe tests\n", (int) len, "*");
     156        printf("%-*s Run all safe tests\n", _len, "*");
    155157}
    156158
  • uspace/lib/c/Makefile

    r3fea752 r182487c6  
    189189TEST_SOURCES = \
    190190        test/adt/circ_buf.c \
    191         test/casting.c \
    192191        test/fibril/timer.c \
    193192        test/main.c \
     
    197196        test/stdio/scanf.c \
    198197        test/odict.c \
    199         test/perf.c \
    200198        test/perm.c \
    201199        test/qsort.c \
  • uspace/lib/c/test/main.c

    r3fea752 r182487c6  
    3232PCUT_INIT;
    3333
    34 PCUT_IMPORT(casting);
    3534PCUT_IMPORT(circ_buf);
    3635PCUT_IMPORT(fibril_timer);
     
    3837PCUT_IMPORT(mem);
    3938PCUT_IMPORT(odict);
    40 PCUT_IMPORT(perf);
    4139PCUT_IMPORT(perm);
    4240PCUT_IMPORT(qsort);
Note: See TracChangeset for help on using the changeset viewer.