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

Function run_sh

tests/test_subprocess.c:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274#ifndef _WIN32
275static cbm_proc_result_t run_sh(const char *script, int quiet_timeout_ms) {
276 const char *argv[] = {"/bin/sh", "-c", script, NULL};
277 cbm_proc_opts_t opts = {0};
278 opts.bin = "/bin/sh";
279 opts.argv = argv;
280 opts.log_file = NULL;
281 opts.quiet_timeout_ms = quiet_timeout_ms;
282 cbm_proc_result_t r;
283 cbm_subprocess_run(&opts, &r);
284 return r;
285}
286#endif
287
288TEST(subprocess_run_clean) {

Callers 1

test_subprocess.cFile · 0.85

Calls 1

cbm_subprocess_runFunction · 0.85

Tested by

no test coverage detected