From 25f02c577714241cbbe9210a35aa1e1c472244d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sat, 17 Apr 2021 02:19:59 +1200 Subject: [PATCH] Add test for Shell::Unix with shopts --- src/process.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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/")];