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


Ignore:
Files:
19 added
15 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r182487c6 r3fea752  
    9090uspace/app/bithenge/bithenge
    9191uspace/app/blkdump/blkdump
    92 uspace/app/bnchmark/bnchmark
    9392uspace/app/contacts/contacts
    9493uspace/app/corecfg/corecfg
     
    107106uspace/app/getterm/getterm
    108107uspace/app/gunzip/gunzip
     108uspace/app/hbench/hbench
    109109uspace/app/inet/inet
    110110uspace/app/init/init
     
    131131uspace/app/nterm/nterm
    132132uspace/app/pci/pci
    133 uspace/app/perf/perf
    134133uspace/app/ping/ping
    135134uspace/app/ping6/ping6
     
    173172uspace/dist/app/bithenge
    174173uspace/dist/app/blkdump
    175 uspace/dist/app/bnchmark
    176174uspace/dist/app/corecfg
    177175uspace/dist/app/cpptest
  • boot/Makefile.common

    r182487c6 r3fea752  
    181181        bithenge \
    182182        blkdump \
    183         bnchmark \
    184183        contacts \
    185184        corecfg \
     
    192191        fdisk \
    193192        gunzip \
     193        hbench \
    194194        inet \
    195195        kill \
     
    205205        mkmfs \
    206206        nic \
    207         perf \
    208207        sbi \
    209208        sportdmp \
  • uspace/Makefile

    r182487c6 r3fea752  
    3838        app/bithenge \
    3939        app/blkdump \
    40         app/bnchmark \
    4140        app/contacts \
    4241        app/corecfg \
     
    5150        app/getterm \
    5251        app/gunzip \
     52        app/hbench \
    5353        app/init \
    5454        app/inet \
     
    6868        app/nterm \
    6969        app/pci \
    70         app/perf \
    7170        app/redir \
    7271        app/sbi \
  • uspace/app/tester/tester.c

    r182487c6 r3fea752  
    3535 */
    3636
     37#include <assert.h>
    3738#include <stdio.h>
    3839#include <stddef.h>
     
    4041#include <str.h>
    4142#include <io/log.h>
     43#include <types/casting.h>
    4244#include "tester.h"
    4345
     
    144146        }
    145147
    146         unsigned int _len = (unsigned int) len;
    147         if ((_len != len) || (((int) _len) < 0)) {
    148                 printf("Command length overflow\n");
    149                 return;
    150         }
     148        assert(can_cast_size_t_to_int(len) && "test name length overflow");
    151149
    152150        for (test = tests; test->name != NULL; test++)
    153                 printf("%-*s %s%s\n", _len, test->name, test->desc,
     151                printf("%-*s %s%s\n", (int) len, test->name, test->desc,
    154152                    (test->safe ? "" : " (unsafe)"));
    155153
    156         printf("%-*s Run all safe tests\n", _len, "*");
     154        printf("%-*s Run all safe tests\n", (int) len, "*");
    157155}
    158156
  • uspace/lib/c/Makefile

    r182487c6 r3fea752  
    189189TEST_SOURCES = \
    190190        test/adt/circ_buf.c \
     191        test/casting.c \
    191192        test/fibril/timer.c \
    192193        test/main.c \
     
    196197        test/stdio/scanf.c \
    197198        test/odict.c \
     199        test/perf.c \
    198200        test/perm.c \
    199201        test/qsort.c \
  • uspace/lib/c/test/main.c

    r182487c6 r3fea752  
    3232PCUT_INIT;
    3333
     34PCUT_IMPORT(casting);
    3435PCUT_IMPORT(circ_buf);
    3536PCUT_IMPORT(fibril_timer);
     
    3738PCUT_IMPORT(mem);
    3839PCUT_IMPORT(odict);
     40PCUT_IMPORT(perf);
    3941PCUT_IMPORT(perm);
    4042PCUT_IMPORT(qsort);
Note: See TracChangeset for help on using the changeset viewer.