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

Function run_sh

tests/test_subprocess.c:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87#ifndef _WIN32
88static cbm_proc_result_t run_sh(const char *script, int quiet_timeout_ms) {
89 const char *argv[] = {"/bin/sh", "-c", script, NULL};
90 cbm_proc_opts_t opts = {0};
91 opts.bin = "/bin/sh";
92 opts.argv = argv;
93 opts.log_file = NULL;
94 opts.quiet_timeout_ms = quiet_timeout_ms;
95 cbm_proc_result_t r;
96 cbm_subprocess_run(&opts, &r);
97 return r;
98}
99#endif
100
101TEST(subprocess_run_clean) {

Callers 1

test_subprocess.cFile · 0.85

Calls 1

cbm_subprocess_runFunction · 0.85

Tested by

no test coverage detected