| 620 | #ifndef _WIN32 |
| 621 | |
| 622 | static void subprocess_test_pause(void) { |
| 623 | const struct timespec delay = {0, 10000000L}; /* 10 ms */ |
| 624 | (void)cbm_nanosleep(&delay, NULL); |
| 625 | } |
| 626 | |
| 627 | static bool poll_until_terminal(cbm_subprocess_t *process, int timeout_ms, cbm_proc_result_t *out) { |
| 628 | uint64_t deadline = cbm_now_ms() + (uint64_t)timeout_ms; |
no test coverage detected