Repeat an IPC attempt while it reaches a live but mute endpoint, so a slow * reply on a loaded runner is waited for instead of failing the test. A reply * or a definite refusal ends it. Each attempt keeps the API's finite budget. * Returns true when an attempt was answered. */
| 1787 | * or a definite refusal ends it. Each attempt keeps the API's finite budget. |
| 1788 | * Returns true when an attempt was answered. */ |
| 1789 | static bool cli_scope_until_answered(cli_scope_attempt_fn attempt, void *context) { |
| 1790 | for (;;) { |
| 1791 | cli_scope_attempt_t outcome = attempt(context); |
| 1792 | if (outcome != CLI_SCOPE_MUTE) { |
| 1793 | return outcome == CLI_SCOPE_ANSWERED; |
| 1794 | } |
| 1795 | } |
| 1796 | } |
| 1797 | |
| 1798 | /* One attempt to connect the parent's committed client to the host. */ |
| 1799 | static cli_scope_attempt_t cli_scope_connect_attempt(void *context) { |
no outgoing calls
no test coverage detected