Records which setup step failed and says so on stderr, so the caller's * ASSERT_TRUE(ready) is never a silent failure. Returns false. */
| 1745 | /* Records which setup step failed and says so on stderr, so the caller's |
| 1746 | * ASSERT_TRUE(ready) is never a silent failure. Returns false. */ |
| 1747 | static bool cli_scope_setup_failed(cli_scope_fixture_t *fixture, const char *tag, const char *step, |
| 1748 | int os_error) { |
| 1749 | snprintf(fixture->failed_step, sizeof(fixture->failed_step), "%s", step); |
| 1750 | if (os_error != 0) { |
| 1751 | (void)fprintf(stderr, "cli scope fixture %s: setup failed at %s: %s\n", tag, step, |
| 1752 | strerror(os_error)); |
| 1753 | } else { |
| 1754 | (void)fprintf(stderr, "cli scope fixture %s: setup failed at %s\n", tag, step); |
| 1755 | } |
| 1756 | return false; |
| 1757 | } |
| 1758 | |
| 1759 | /* Reap the host child, with no deadline: the release signal makes a healthy |
| 1760 | * child exit within seconds, and a wedged one is left to the harness's |
no outgoing calls
no test coverage detected