1
Fork 0

std::process: Remove helper function pwd_cmd from test module

The test that used it was removed in 700e627cf7.
This commit is contained in:
Geoffrey Thomas 2015-05-22 16:39:21 -04:00
parent fd874cd02e
commit feba393b8e

View file

@ -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")