| 757 | } |
| 758 | |
| 759 | static bool gic_expired(cbm_ignore_checked_t *owner, const cbm_ignore_program_t *program, |
| 760 | bool parsing) { |
| 761 | cbm_ignore_checked_control_t control = gic_control(); |
| 762 | control.deadline_ms = 1; |
| 763 | cbm_ignore_checked_error_t error; |
| 764 | cbm_ignore_checked_status_t status; |
| 765 | if (cbm_now_ms() <= 1) |
| 766 | return false; |
| 767 | if (parsing) { |
| 768 | cbm_ignore_checked_parse_result_t out = {.program = program, .pattern_count = 77}; |
| 769 | status = cbm_ignore_checked_parse(owner, "x", 1, &control, &out, &error); |
| 770 | if (out.program || out.pattern_count) |
| 771 | return false; |
| 772 | } else { |
| 773 | cbm_ignore_decision_t decision = CBM_IGNORE_IGNORED; |
| 774 | status = |
| 775 | cbm_ignore_checked_match(owner, program, "x", 1, false, &control, &decision, &error); |
| 776 | if (decision != CBM_IGNORE_UNAVAILABLE) |
| 777 | return false; |
| 778 | } |
| 779 | return gic_status(status, CBM_IGNORE_CHECKED_DEADLINE, &error) && |
| 780 | gic_terminal(owner, program, CBM_IGNORE_CHECKED_DEADLINE); |
| 781 | } |
| 782 | |
| 783 | TEST(gic_f_cancellation_deadline_and_poll_evidence) { |
| 784 | gic_fixture f; |
no test coverage detected