MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cli_scope_setup_failed

Function cli_scope_setup_failed

tests/test_cli.c:1747–1757  ·  view source on GitHub ↗

Records which setup step failed and says so on stderr, so the caller's * ASSERT_TRUE(ready) is never a silent failure. Returns false. */

Source from the content-addressed store, hash-verified

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. */
1747static 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

Callers 1

cli_scope_fixture_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected