diff --git a/src/process.rs b/src/process.rs index 1a79aaf..d913ef8 100644 --- a/src/process.rs +++ b/src/process.rs @@ -588,6 +588,16 @@ mod tests { ); } + #[test] + fn test_shell_alternate_shopts() { + let _ = spawn( + &["echo".into(), "hi".into()], + &[], + Shell::Unix("bash -o errexit".into()), + false, + ); + } + #[test] fn longest_common_path_should_return_correct_value() { let single_path = vec![PathBuf::from("/tmp/random/")];