Subversion Repositories HelenOS

Rev

Rev 2801 | Rev 3424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2801 Rev 2925
Line 78... Line 78...
78
}
78
}
79
 
79
 
80
static void run_safe_tests(void)
80
static void run_safe_tests(void)
81
{
81
{
82
    test_t *test;
82
    test_t *test;
-
 
83
    unsigned int i = 0;
83
    int i = 0, n = 0;
84
    unsigned int n = 0;
84
 
85
 
85
    printf("\n*** Running all safe tests\n\n");
86
    printf("\n*** Running all safe tests ***\n\n");
86
 
87
 
87
    for (test = tests; test->name != NULL; test++) {
88
    for (test = tests; test->name != NULL; test++) {
88
        if (test->safe) {
89
        if (test->safe) {
89
            if (run_test(test))
90
            if (run_test(test))
90
                i++;
91
                i++;
91
            else
92
            else
92
                n++;
93
                n++;
93
        }
94
        }
94
    }
95
    }
95
 
96
 
96
    printf("\nSafe tests completed, %d tests run, %d passed.\n\n", i + n, i);
97
    printf("\nSafe tests completed, %u tests run, %u passed.\n\n", i + n, i);
97
}
98
}
98
 
99
 
99
static void list_tests(void)
100
static void list_tests(void)
100
{
101
{
101
    test_t *test;
102
    test_t *test;