| 1647 | static bool *g_suite_arg_matched = NULL; |
| 1648 | |
| 1649 | static bool suite_requested(const char *name) { |
| 1650 | /* Every registered suite passes through here, requested or not: this is |
| 1651 | * where a selection token learns that its suite exists in this build. */ |
| 1652 | size_t token_end = 0; |
| 1653 | size_t token_first = tf_only_suite_run(name, &token_end); |
| 1654 | tf_only_raise(token_first, token_end, TF_ONLY_REGISTERED); |
| 1655 | if (g_suite_argc <= 1) { |
| 1656 | return true; |
| 1657 | } |
| 1658 | bool requested = false; |
| 1659 | for (int i = 1; i < g_suite_argc; i++) { |
| 1660 | if (strcmp(g_suite_argv[i], name) == 0) { |
| 1661 | g_suite_arg_matched[i] = true; |
| 1662 | requested = true; |
| 1663 | } |
| 1664 | } |
| 1665 | return requested; |
| 1666 | } |
| 1667 | |
| 1668 | /* --list-suites: print every registered suite name, one per line, without |
| 1669 | * running anything. The list and the run share this ONE macro table, so the |
nothing calls this directly
no test coverage detected