From bbc3f2e52537c52571dd26c6712cb961375224ae Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Mon, 23 Feb 2015 21:41:27 -0800 Subject: [PATCH] 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. --- src/libstd/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 86604f62171..c24b08deec2 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -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.