Subversion Repositories HelenOS

Rev

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

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