std::process: Remove helper function pwd_cmd from test module
The test that used it was removed in 700e627cf7
.
This commit is contained in:
parent
fd874cd02e
commit
feba393b8e
1 changed files with 0 additions and 18 deletions
|
@ -769,24 +769,6 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(all(unix, not(target_os="android")))]
|
||||
pub fn pwd_cmd() -> Command {
|
||||
Command::new("pwd")
|
||||
}
|
||||
#[cfg(target_os="android")]
|
||||
pub fn pwd_cmd() -> Command {
|
||||
let mut cmd = Command::new("/system/bin/sh");
|
||||
cmd.arg("-c").arg("pwd");
|
||||
cmd
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
pub fn pwd_cmd() -> Command {
|
||||
let mut cmd = Command::new("cmd");
|
||||
cmd.arg("/c").arg("cd");
|
||||
cmd
|
||||
}
|
||||
|
||||
#[cfg(all(unix, not(target_os="android")))]
|
||||
pub fn env_cmd() -> Command {
|
||||
Command::new("env")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue