Changes in uspace/app/tester/tester.c [ffdd2b9:d91a20c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/tester.c
rffdd2b9 rd91a20c 38 38 #include <unistd.h> 39 39 #include <stdio.h> 40 #include <str .h>40 #include <string.h> 41 41 #include "tester.h" 42 42 … … 51 51 #include "print/print3.def" 52 52 #include "print/print4.def" 53 #include "print/print5.def"54 53 #include "console/console1.def" 55 54 #include "stdio/stdio1.def" … … 64 63 #include "loop/loop1.def" 65 64 #include "mm/malloc1.def" 66 #include "hw/serial/serial1.def"67 65 {NULL, NULL, NULL, false} 68 66 }; … … 71 69 { 72 70 /* Execute the test */ 73 c onst char *ret = test->entry();71 char *ret = test->entry(); 74 72 75 73 if (ret == NULL) { … … 112 110 } 113 111 114 unsigned int _len = (unsigned int) len; 115 if ((_len != len) || (((int) _len) < 0)) { 116 printf("Command length overflow\n"); 117 return; 118 } 112 for (test = tests; test->name != NULL; test++) 113 printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)")); 119 114 120 for (test = tests; test->name != NULL; test++) 121 printf("%-*s %s%s\n", _len, test->name, test->desc, 122 (test->safe ? "" : " (unsafe)")); 123 124 printf("%-*s Run all safe tests\n", _len, "*"); 115 printf("%-*s Run all safe tests\n", len, "*"); 125 116 } 126 117
Note:
See TracChangeset
for help on using the changeset viewer.