Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2784 → Rev 2785

/trunk/uspace/app/tester/tester.c
78,6 → 78,21
 
static void run_safe_tests(void)
{
test_t *test;
int i = 0, n = 0;
 
printf("\n*** Running all safe tests\n\n");
 
for (test = tests; test->name != NULL; test++) {
if (test->safe) {
if (run_test(test))
i++;
else
n++;
}
}
 
printf("\nSafe tests completed, %d tests run, %d passed.\n\n", i + n, i);
}
 
static void list_tests(void)
/trunk/uspace/app/tester/ipc/hangup.c
37,9 → 37,11
int res;
int phoneid;
 
printf("Select phoneid to hangup: 2-9\n");
printf("Select phoneid to hangup: 2-9 (Q to skip)\n");
do {
c = getchar();
if (c == 'Q' || c == 'q')
return TEST_SKIPPED;
} while (c < '2' || c > '9');
phoneid = c - '0';
/trunk/uspace/app/tester/ipc/send_sync.c
38,9 → 38,11
static int msgid = 1;
char c;
 
printf("Select phoneid to send msg: 2-9\n");
printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
do {
c = getchar();
if (c == 'Q' || c == 'q')
return TEST_SKIPPED;
} while (c < '2' || c > '9');
phoneid = c - '0';
/trunk/uspace/app/tester/ipc/send_async.c
41,9 → 41,11
static int msgid = 1;
char c;
 
printf("Select phoneid to send msg: 2-9\n");
printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
do {
c = getchar();
if (c == 'Q' || c == 'q')
return TEST_SKIPPED;
} while (c < '2' || c > '9');
phoneid = c - '0';
 
/trunk/uspace/app/tester/ipc/connect.c
36,9 → 36,11
int svc;
int phid;
 
printf("Choose one service: 0:10000....9:10009\n");
printf("Choose one service: 0:10000....9:10009 (Q to skip)\n");
do {
c = getchar();
if (c == 'Q' || c == 'q')
return TEST_SKIPPED;
} while (c < '0' || c > '9');
svc = IPC_TEST_START + c - '0';
/trunk/uspace/app/tester/tester.h
42,6 → 42,7
#define IPC_TEST_START 10000
#define MAX_PHONES 20
#define MAX_CONNECTIONS 50
#define TEST_SKIPPED "Test Skipped"
 
extern int myservice;
extern int phones[MAX_PHONES];