Changeset 1433ecda in mainline for uspace/lib/pcut/src/main.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/main.c
r47b2d7e3 r1433ecda 57 57 * @return Whether @p arg is @p opt followed by a number. 58 58 */ 59 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) { 59 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) 60 { 60 61 int opt_len = pcut_str_size(opt); 61 if (! 62 if (!pcut_str_start_equals(arg, opt, opt_len)) { 62 63 return 0; 63 64 } … … 74 75 * @retval NULL No item with such id exists in the list. 75 76 */ 76 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) { 77 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) 78 { 77 79 pcut_item_t *it = pcut_get_real(first); 78 80 while (it != NULL) { … … 92 94 * @return Error code. 93 95 */ 94 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) { 96 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) 97 { 95 98 int is_first_test = 1; 96 99 int total_count = 0; … … 156 159 * @param first First item of the list. 157 160 */ 158 static void set_setup_teardown_callbacks(pcut_item_t *first) { 161 static void set_setup_teardown_callbacks(pcut_item_t *first) 162 { 159 163 pcut_item_t *active_suite = NULL; 160 164 pcut_item_t *it; … … 188 192 * @return Program exit code. 189 193 */ 190 int pcut_main(pcut_item_t *last, int argc, char *argv[]) { 194 int pcut_main(pcut_item_t *last, int argc, char *argv[]) 195 { 191 196 pcut_item_t *items = pcut_fix_list_get_real_head(last); 192 197 pcut_item_t *it;
Note:
See TracChangeset
for help on using the changeset viewer.