/branches/tracing/uspace/app/tester/tester.c |
---|
80,9 → 80,10 |
static void run_safe_tests(void) |
{ |
test_t *test; |
int i = 0, n = 0; |
unsigned int i = 0; |
unsigned int n = 0; |
printf("\n*** Running all safe tests\n\n"); |
printf("\n*** Running all safe tests ***\n\n"); |
for (test = tests; test->name != NULL; test++) { |
if (test->safe) { |
93,7 → 94,7 |
} |
} |
printf("\nSafe tests completed, %d tests run, %d passed.\n\n", i + n, i); |
printf("\nSafe tests completed, %u tests run, %u passed.\n\n", i + n, i); |
} |
static void list_tests(void) |
/branches/tracing/uspace/app/tester/ipc/send_sync.c |
---|
38,10 → 38,10 |
static int msgid = 1; |
char c; |
printf("Select phoneid to send msg: 2-9 (Q to skip)\n"); |
printf("Select phoneid to send msg: 2-9 (q to skip)\n"); |
do { |
c = getchar(); |
if (c == 'Q' || c == 'q') |
if ((c == 'Q') || (c == 'q')) |
return TEST_SKIPPED; |
} while (c < '2' || c > '9'); |
phoneid = c - '0'; |
/branches/tracing/uspace/app/tester/ipc/send_async.c |
---|
41,10 → 41,10 |
static int msgid = 1; |
char c; |
printf("Select phoneid to send msg: 2-9 (Q to skip)\n"); |
printf("Select phoneid to send msg: 2-9 (q to skip)\n"); |
do { |
c = getchar(); |
if (c == 'Q' || c == 'q') |
if ((c == 'Q') || (c == 'q')) |
return TEST_SKIPPED; |
} while (c < '2' || c > '9'); |
phoneid = c - '0'; |
/branches/tracing/uspace/app/tester/ipc/connect.c |
---|
36,10 → 36,10 |
int svc; |
int phid; |
printf("Choose one service: 0:10000....9:10009 (Q to skip)\n"); |
printf("Choose one service: 0:10000....9:10009 (q to skip)\n"); |
do { |
c = getchar(); |
if (c == 'Q' || c == 'q') |
if ((c == 'Q') || (c == 'q')) |
return TEST_SKIPPED; |
} while (c < '0' || c > '9'); |
/branches/tracing/uspace/app/tester/vfs/vfs1.c |
---|
43,11 → 43,24 |
char *test_vfs1(bool quiet) |
{ |
if (mount("tmpfs", "/", "nulldev0") != EOK) |
return "mount() failed.\n"; |
if (!quiet) |
printf("mounted tmpfs on /.\n"); |
int rc; |
rc = mount("tmpfs", "/", "nulldev0"); |
switch (rc) { |
case EOK: |
if (!quiet) |
printf("mounted tmpfs on /\n"); |
break; |
case EBUSY: |
if (!quiet) |
printf("(INFO) something is already mounted on /\n"); |
break; |
default: |
if (!quiet) |
printf("(INFO) IPC returned errno %d\n", rc); |
return "mount() failed."; |
} |
if (mkdir("/mydir", 0) != 0) |
return "mkdir() failed.\n"; |
if (!quiet) |