Skip to content
Myr

Use get_program

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 21f76a3 · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:src/options.rs+1 added-4 removed
298 unmodified lines
299 let s = format!("{}", shell);300 assert_eq!(&s, DEFAULT_SHELL);301302 let cmd = shell.command();303 // Command::get_program is not yet available in stable channel.304 // https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program305 let s = format!("{:?}", cmd);306 assert_eq!(s, format!("\"{}\"", DEFAULT_SHELL));303 assert_eq!(cmd.get_program(), DEFAULT_SHELL);304}305306#[test]307fn test_can_parse_shell_command_line_from_str() {
30 unmodified lines