static void srunner_iterate_suites (SRunner *sr, enum print_output CK_ATTRIBUTE_UNUSED print_mode) { List *slst; List *tcl; TCase *tc; slst = sr->slst; for (list_front(slst); !list_at_end(slst); list_advance(slst)) { Suite *s = list_val(slst); log_suite_start (sr, s); tcl = s->tclst; for (list_front(tcl);!list_at_end (tcl); list_advance (tcl)) { tc = list_val (tcl); srunner_run_tcase (sr, tc); } log_suite_end (sr, s); } }
static void srunner_iterate_suites (SRunner *sr, const char *sname, const char *tcname, enum print_output CK_ATTRIBUTE_UNUSED print_mode) { List *slst; List *tcl; TCase *tc; slst = sr->slst; for (list_front(slst); !list_at_end(slst); list_advance(slst)) { Suite *s = list_val(slst); if (((sname != NULL) && (strcmp (sname, s->name) != 0)) || ((tcname != NULL) && (!suite_tcase (s, tcname)))) continue; log_suite_start (sr, s); tcl = s->tclst; for (list_front(tcl);!list_at_end (tcl); list_advance (tcl)) { tc = list_val (tcl); if ((tcname != NULL) && (strcmp (tcname, tc->name) != 0)) { continue; } srunner_run_tcase (sr, tc); } log_suite_end (sr, s); } }