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

Function run_sh

tests/test_subprocess.c:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79#ifndef _WIN32
80static cbm_proc_result_t run_sh(const char *script, int quiet_timeout_ms) {
81 const char *argv[] = {"/bin/sh", "-c", script, NULL};
82 cbm_proc_opts_t opts = {0};
83 opts.bin = "/bin/sh";
84 opts.argv = argv;
85 opts.log_file = NULL;
86 opts.quiet_timeout_ms = quiet_timeout_ms;
87 cbm_proc_result_t r;
88 cbm_subprocess_run(&opts, &r);
89 return r;
90}
91#endif
92
93TEST(subprocess_run_clean) {

Callers 1

test_subprocess.cFile · 0.85

Calls 1

cbm_subprocess_runFunction · 0.85

Tested by

no test coverage detected