diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-10 07:36:33 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-12-18 23:31:52 -0800 |
| commit | 9644d60cc449461f3d7289099654d1f6d227244f (patch) | |
| tree | af9976fdf6950fc38bf5c241fa4f74aca45d6bcd /src/libstd | |
| parent | ced22398528db51fcb7e704fdd390dea481d36b8 (diff) | |
| download | rust-9644d60cc449461f3d7289099654d1f6d227244f.tar.gz rust-9644d60cc449461f3d7289099654d1f6d227244f.zip | |
Fix the capture_stderr test
There's always a fun time having two sets of standard libraries when testing!
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/stdio.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index bb9d6a68585..8e28ad1add5 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -532,15 +532,14 @@ mod tests { assert_eq!(r.read_to_string().unwrap(), "hello!\n"); } - //#[test] + #[test] fn capture_stderr() { - use realstd::comm::channel; - use realstd::io::{ChanReader, ChanWriter, Reader}; + use io::{ChanReader, ChanWriter, Reader}; let (tx, rx) = channel(); let (mut r, w) = (ChanReader::new(rx), ChanWriter::new(tx)); spawn(move|| { - ::realstd::io::stdio::set_stderr(box w); + set_stderr(box w); panic!("my special message"); }); let s = r.read_to_string().unwrap(); |
