mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
Fix the std::process::Stdio constructors
There are no tests for this because testing inherit/null is tricky. Probably why there weren't tests for it to begin with.
This commit is contained in:
parent
2890508d97
commit
bbc3f2e525
@ -355,11 +355,11 @@ impl Stdio {
|
||||
pub fn capture() -> Stdio { Stdio(StdioImp::Capture) }
|
||||
|
||||
/// The child inherits from the corresponding parent descriptor.
|
||||
pub fn inherit() -> Stdio { Stdio(StdioImp::Capture) }
|
||||
pub fn inherit() -> Stdio { Stdio(StdioImp::Inherit) }
|
||||
|
||||
/// This stream will be ignored. This is the equivalent of attaching the
|
||||
/// stream to `/dev/null`
|
||||
pub fn null() -> Stdio { Stdio(StdioImp::Capture) }
|
||||
pub fn null() -> Stdio { Stdio(StdioImp::Null) }
|
||||
}
|
||||
|
||||
/// Describes the result of a process after it has terminated.
|
||||
|
Loading…
Reference in New Issue
Block a user