(args: &[&str], output: &std::process::Output)
| 823 | } |
| 824 | |
| 825 | fn launchctl_failure(args: &[&str], output: &std::process::Output) -> TraceDecayError { |
| 826 | TraceDecayError::Config { |
| 827 | message: format!( |
| 828 | "launchctl {} failed with status {}\nstdout:\n{}\nstderr:\n{}", |
| 829 | args.join(" "), |
| 830 | output.status, |
| 831 | String::from_utf8_lossy(&output.stdout), |
| 832 | String::from_utf8_lossy(&output.stderr) |
| 833 | ), |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | fn run_launchctl(args: &[&str]) -> Result<std::process::Output> { |
| 838 | let output = launchctl_spawn(args)?; |
no outgoing calls
no test coverage detected