Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/main.c
- Timestamp:
- 2018-09-12T13:23:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/main.c
r275530a4 r4b54bd9 34 34 #include "internal.h" 35 35 #include "report/report.h" 36 37 #pragma warning(push, 0) 36 38 #include <assert.h> 37 39 #include <stdlib.h> 38 40 #include <stdio.h> 41 #pragma warning(pop) 42 39 43 40 44 /** Current running mode. */ … … 57 61 * @return Whether @p arg is @p opt followed by a number. 58 62 */ 59 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) 60 { 63 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) { 61 64 int opt_len = pcut_str_size(opt); 62 if (! pcut_str_start_equals(arg, opt, opt_len)) {65 if (! pcut_str_start_equals(arg, opt, opt_len)) { 63 66 return 0; 64 67 } … … 75 78 * @retval NULL No item with such id exists in the list. 76 79 */ 77 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) 78 { 80 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) { 79 81 pcut_item_t *it = pcut_get_real(first); 80 82 while (it != NULL) { … … 94 96 * @return Error code. 95 97 */ 96 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) 97 { 98 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) { 98 99 int is_first_test = 1; 99 100 int total_count = 0; … … 159 160 * @param first First item of the list. 160 161 */ 161 static void set_setup_teardown_callbacks(pcut_item_t *first) 162 { 162 static void set_setup_teardown_callbacks(pcut_item_t *first) { 163 163 pcut_item_t *active_suite = NULL; 164 164 pcut_item_t *it; … … 192 192 * @return Program exit code. 193 193 */ 194 int pcut_main(pcut_item_t *last, int argc, char *argv[]) 195 { 194 int pcut_main(pcut_item_t *last, int argc, char *argv[]) { 196 195 pcut_item_t *items = pcut_fix_list_get_real_head(last); 197 196 pcut_item_t *it;
Note:
See TracChangeset
for help on using the changeset viewer.