Changeset 9b20126 in mainline for uspace/lib/pcut/src/report/tap.c
- Timestamp:
- 2014-09-19T08:23:01Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c85a57f
- Parents:
- 15d0046
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/report/tap.c
r15d0046 r9b20126 67 67 failed_tests_in_suite = 0; 68 68 69 printf("#> Starting suite %s.\n", suite-> suite.name);69 printf("#> Starting suite %s.\n", suite->name); 70 70 } 71 71 … … 76 76 static void tap_suite_done(pcut_item_t *suite) { 77 77 printf("#> Finished suite %s (failed %d of %d).\n", 78 suite-> suite.name, failed_tests_in_suite, tests_in_suite);78 suite->name, failed_tests_in_suite, tests_in_suite); 79 79 } 80 80 … … 98 98 */ 99 99 static void print_by_lines(const char *message, const char *prefix) { 100 char *next_line_start; 100 101 if ((message == NULL) || (message[0] == 0)) { 101 102 return; 102 103 } 103 char *next_line_start = pcut_str_find_char(message, '\n');104 next_line_start = pcut_str_find_char(message, '\n'); 104 105 while (next_line_start != NULL) { 105 106 next_line_start[0] = 0; … … 124 125 const char *error_message, const char *teardown_error_message, 125 126 const char *extra_output) { 126 const char *test_name = test->test.name; 127 const char *test_name = test->name; 128 const char *status_str = NULL; 129 const char *fail_error_str = NULL; 127 130 128 131 if (outcome != TEST_OUTCOME_PASS) { … … 130 133 } 131 134 132 const char *status_str = NULL;133 const char *fail_error_str = NULL;134 135 switch (outcome) { 135 136 case TEST_OUTCOME_PASS: … … 158 159 159 160 /** Report testing done. */ 160 static void tap_done( ) {161 static void tap_done(void) { 161 162 } 162 163 163 164 164 165 pcut_report_ops_t pcut_report_tap = { 165 .init = tap_init, 166 .done = tap_done, 167 .suite_start = tap_suite_start, 168 .suite_done = tap_suite_done, 169 .test_start = tap_test_start, 170 .test_done = tap_test_done 166 tap_init, tap_done, 167 tap_suite_start, tap_suite_done, 168 tap_test_start, tap_test_done 171 169 };
Note:
See TracChangeset
for help on using the changeset viewer.