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

Function event

tests/test_coverage_parent_failure.c:168–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static bool event(const Fixture *f, const char *stage, int marker, int exit_code) {
169 return fprintf(stderr,
170 "COV_PARENT {\"mode\":\"%s\",\"stage\":\"%s\",\"owner_pid\":%ld,"
171 "\"child_pid\":%ld,\"control_errno\":%d,\"marker\":%d,\"exit_code\":%d,"
172 "\"saved_soft\":%ju,\"saved_hard\":%ju,\"parent_soft\":%ju,"
173 "\"parent_hard\":%ju,\"child_seen_soft\":%ju,\"child_seen_hard\":%ju,"
174 "\"child_restored_soft\":%ju,\"child_restored_hard\":%ju}\n",
175 restricted_requested ? "emfile" : "control", stage, (long)getpid(), (long)f->pid,
176 f->child.control_errno, marker, exit_code, (uintmax_t)f->saved.rlim_cur,
177 (uintmax_t)f->saved.rlim_max, (uintmax_t)f->parent_restored.rlim_cur,
178 (uintmax_t)f->parent_restored.rlim_max, (uintmax_t)f->child.observed.rlim_cur,
179 (uintmax_t)f->child.observed.rlim_max, (uintmax_t)f->child.restored.rlim_cur,
180 (uintmax_t)f->child.restored.rlim_max) > 0 &&
181 fflush(stderr) == 0;
182}
183
184static bool setup(Fixture *f, const char *root) {
185 int n = snprintf(f->control, sizeof(f->control), "%s/parent-control.XXXXXX", root);

Callers 1

observe_and_releaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected