Changeset 047aa46 in mainline


Ignore:
Timestamp:
2008-03-26T22:47:55Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e190a89b
Parents:
e13daa5d
Message:

Finish run_safe_tests() in app/tester (contributed by Tim Post).

Location:
uspace/app/tester
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/ipc/connect.c

    re13daa5d r047aa46  
    3737        int phid;
    3838
    39         printf("Choose one service: 0:10000....9:10009\n");
     39        printf("Choose one service: 0:10000....9:10009 (Q to skip)\n");
    4040        do {
    4141                c = getchar();
     42                if (c == 'Q' || c == 'q')
     43                        return TEST_SKIPPED;
    4244        } while (c < '0' || c > '9');
    4345       
  • uspace/app/tester/ipc/hangup.c

    re13daa5d r047aa46  
    3838        int phoneid;
    3939
    40         printf("Select phoneid to hangup: 2-9\n");
     40        printf("Select phoneid to hangup: 2-9 (Q to skip)\n");
    4141        do {
    4242                c = getchar();
     43                if (c == 'Q' || c == 'q')
     44                        return TEST_SKIPPED;
    4345        } while (c < '2' || c > '9');
    4446        phoneid = c - '0';
  • uspace/app/tester/ipc/send_async.c

    re13daa5d r047aa46  
    4242        char c;
    4343
    44         printf("Select phoneid to send msg: 2-9\n");
     44        printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
    4545        do {
    4646                c = getchar();
     47                if (c == 'Q' || c == 'q')
     48                        return TEST_SKIPPED;
    4749        } while (c < '2' || c > '9');
    4850        phoneid = c - '0';
  • uspace/app/tester/ipc/send_sync.c

    re13daa5d r047aa46  
    3939        char c;
    4040
    41         printf("Select phoneid to send msg: 2-9\n");
     41        printf("Select phoneid to send msg: 2-9 (Q to skip)\n");
    4242        do {
    4343                c = getchar();
     44                if (c == 'Q' || c == 'q')
     45                        return TEST_SKIPPED;
    4446        } while (c < '2' || c > '9');
    4547        phoneid = c - '0';
  • uspace/app/tester/tester.c

    re13daa5d r047aa46  
    7979static void run_safe_tests(void)
    8080{
     81        test_t *test;
     82        int i = 0, n = 0;
     83
     84        printf("\n*** Running all safe tests\n\n");
     85
     86        for (test = tests; test->name != NULL; test++) {
     87                if (test->safe) {
     88                        if (run_test(test))
     89                                i++;
     90                        else
     91                                n++;
     92                }
     93        }
     94
     95        printf("\nSafe tests completed, %d tests run, %d passed.\n\n", i + n, i);
    8196}
    8297
  • uspace/app/tester/tester.h

    re13daa5d r047aa46  
    4343#define MAX_PHONES              20
    4444#define MAX_CONNECTIONS 50
     45#define TEST_SKIPPED    "Test Skipped"
    4546
    4647extern int myservice;
Note: See TracChangeset for help on using the changeset viewer.