Rev 2787 | Rev 2801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 2799 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | #include "ipc/send_sync.def" |
55 | #include "ipc/send_sync.def" |
56 | #include "ipc/answer.def" |
56 | #include "ipc/answer.def" |
57 | #include "ipc/hangup.def" |
57 | #include "ipc/hangup.def" |
58 | #include "devmap/devmap1.def" |
58 | #include "devmap/devmap1.def" |
59 | #include "vfs/vfs1.def" |
59 | #include "vfs/vfs1.def" |
60 | #include "tdebug/tdebug1.def" |
- | |
61 | {NULL, NULL, NULL} |
60 | {NULL, NULL, NULL} |
62 | }; |
61 | }; |
63 | 62 | ||
64 | static bool run_test(test_t *test) |
63 | static bool run_test(test_t *test) |
65 | { |
64 | { |
Line 78... | Line 77... | ||
78 | } |
77 | } |
79 | 78 | ||
80 | static void run_safe_tests(void) |
79 | static void run_safe_tests(void) |
81 | { |
80 | { |
82 | test_t *test; |
81 | test_t *test; |
83 | unsigned int i = 0; |
- | |
84 | unsigned int n = 0; |
82 | int i = 0, n = 0; |
85 | 83 | ||
86 | printf("\n*** Running all safe tests ***\n\n"); |
84 | printf("\n*** Running all safe tests\n\n"); |
87 | 85 | ||
88 | for (test = tests; test->name != NULL; test++) { |
86 | for (test = tests; test->name != NULL; test++) { |
89 | if (test->safe) { |
87 | if (test->safe) { |
90 | if (run_test(test)) |
88 | if (run_test(test)) |
91 | i++; |
89 | i++; |
92 | else |
90 | else |
93 | n++; |
91 | n++; |
94 | } |
92 | } |
95 | } |
93 | } |
96 | 94 | ||
97 | printf("\nSafe tests completed, %u tests run, %u passed.\n\n", i + n, i); |
95 | printf("\nSafe tests completed, %d tests run, %d passed.\n\n", i + n, i); |
98 | } |
96 | } |
99 | 97 | ||
100 | static void list_tests(void) |
98 | static void list_tests(void) |
101 | { |
99 | { |
102 | test_t *test; |
100 | test_t *test; |