| 86 | |
| 87 | #ifndef _WIN32 |
| 88 | static 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 | |
| 101 | TEST(subprocess_run_clean) { |
no test coverage detected