Revert "Tags new test as no_run and uses expect()"

- After discussing with @alexcrichton, the initial commit has been fine.

This reverts commit 3b5cfa3ecf.
This commit is contained in:
Lukas Pustina 2016-03-19 10:41:13 +01:00
parent 3b5cfa3ecf
commit aefbbc79a3

View file

@ -507,16 +507,17 @@ impl Child {
///
/// # Examples
///
/// ```no_run
/// ```should_panic
/// use std::process::{Command, Stdio};
///
/// let mut child = Command::new("/bin/cat")
/// .stdout(Stdio::piped())
/// .arg("file.txt")
/// .spawn()
/// .expect("failed to execute child");
/// .unwrap_or_else(|e| { panic!("failed to execute child: {}", e) });
///
/// let ecode = child.wait_with_output().expect("failed to wait on child");
/// let ecode = child.wait_with_output()
/// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
///
/// assert!(ecode.success());
/// ```