mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
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:
@@ -507,16 +507,17 @@ pub fn wait(&mut self) -> io::Result<ExitStatus> {
|
||||
///
|
||||
/// # 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());
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user