| 273 | |
| 274 | #ifndef _WIN32 |
| 275 | static 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 | |
| 288 | TEST(subprocess_run_clean) { |
no test coverage detected