about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLukas Pustina <lukas.pustina@centerdevice.com>2016-03-22 15:19:24 +0100
committerLukas Pustina <lukas.pustina@centerdevice.com>2016-03-22 15:19:24 +0100
commit561337223fc5aa6d97457bdd133f7404b6ae562a (patch)
treed3355ce1307ec9576b71da373da32b03a58de80b /src/libstd
parent0dd5f67f4af2f071fa435dc0487d3678d3cf40dd (diff)
downloadrust-561337223fc5aa6d97457bdd133f7404b6ae562a.tar.gz
rust-561337223fc5aa6d97457bdd133f7404b6ae562a.zip
Fixes test which are now run due to should_panic
Since I changed no_run to should_panic on some tests, the were run but
two lacked an actual assertion. Further, I missed to check the return
type on another test.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index d58e8ebab58..a542bf2c8d2 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -314,6 +314,8 @@ impl Command {
     /// println!("status: {}", output.status);
     /// println!("stdout: {}", String::from_utf8_lossy(&output.stdout));
     /// println!("stderr: {}", String::from_utf8_lossy(&output.stderr));
+    ///
+    /// assert!(output.status.success());
     /// ```
     #[stable(feature = "process", since = "1.0.0")]
     pub fn output(&mut self) -> io::Result<Output> {
@@ -335,6 +337,8 @@ impl Command {
     ///     .expect("failed to execute process");
     ///
     /// println!("process exited with: {}", status);
+    ///
+    /// assert!(status.success());
     /// ```
     #[stable(feature = "process", since = "1.0.0")]
     pub fn status(&mut self) -> io::Result<ExitStatus> {
@@ -518,7 +522,7 @@ impl Child {
     /// let ecode = child.wait_with_output()
     ///                  .expect("failed to wait on child");
     ///
-    /// assert!(ecode.success());
+    /// assert!(ecode.status.success());
     /// ```
     ///
     #[stable(feature = "process", since = "1.0.0")]