Changes in uspace/app/tester/tester.c [61cc94e:2d11a7d8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/tester.c
r61cc94e r2d11a7d8 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" … … 57 56 #include "fault/fault1.def" 58 57 #include "fault/fault2.def" 59 #include "fault/fault3.def"60 58 #include "vfs/vfs1.def" 61 59 #include "ipc/ping_pong.def" 60 #include "ipc/register.def" 61 #include "ipc/connect.def" 62 62 #include "loop/loop1.def" 63 63 #include "mm/malloc1.def" 64 #include "hw/serial/serial1.def"65 #include "hw/misc/virtchar1.def"66 64 {NULL, NULL, NULL, false} 67 65 }; … … 70 68 { 71 69 /* Execute the test */ 72 c onst char *ret = test->entry();70 char *ret = test->entry(); 73 71 74 72 if (ret == NULL) { … … 111 109 } 112 110 113 unsigned int _len = (unsigned int) len; 114 if ((_len != len) || (((int) _len) < 0)) { 115 printf("Command length overflow\n"); 116 return; 117 } 111 for (test = tests; test->name != NULL; test++) 112 printf("%-*s %s%s\n", len, test->name, test->desc, (test->safe ? "" : " (unsafe)")); 118 113 119 for (test = tests; test->name != NULL; test++) 120 printf("%-*s %s%s\n", _len, test->name, test->desc, 121 (test->safe ? "" : " (unsafe)")); 122 123 printf("%-*s Run all safe tests\n", _len, "*"); 114 printf("%-*s Run all safe tests\n", len, "*"); 124 115 } 125 116
Note:
See TracChangeset
for help on using the changeset viewer.