Changes in uspace/app/tester/tester.c [713ba400:3b3fcf36] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/tester.c
r713ba400 r3b3fcf36 35 35 */ 36 36 37 #include <assert.h>38 37 #include <stdio.h> 39 38 #include <stddef.h> … … 41 40 #include <str.h> 42 41 #include <io/log.h> 43 #include <types/casting.h>44 42 #include "tester.h" 45 43 … … 146 144 } 147 145 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 } 149 151 150 152 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, 152 154 (test->safe ? "" : " (unsafe)")); 153 155 154 printf("%-*s Run all safe tests\n", (int)len, "*");156 printf("%-*s Run all safe tests\n", _len, "*"); 155 157 } 156 158
Note:
See TracChangeset
for help on using the changeset viewer.