Use get_program

This commit is contained in:
David Peter authored and David Peter committed 2022-02-22 09:07:40 +01:00
1 parent 21f76a338f
commit 6645fa10b9
1 file changed
+1 -4
+1 -4
View File
@@ -300,10 +300,7 @@ fn test_shell_default_command() {
assert_eq!(&s, DEFAULT_SHELL);
let cmd = shell.command();
// Command::get_program is not yet available in stable channel.
// https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
let s = format!("{:?}", cmd);
assert_eq!(s, format!("\"{}\"", DEFAULT_SHELL));
assert_eq!(cmd.get_program(), DEFAULT_SHELL);
}
#[test]