From: Sebastian Dröge Date: Mon, 9 Jan 2017 10:49:13 +0000 (+0200) Subject: Check if the "doc --all" tests exit with exit code 0 X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~44^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9576b3162aabec9c74136bc8245a4f3fde612631;p=cargo.git Check if the "doc --all" tests exit with exit code 0 --- diff --git a/tests/doc.rs b/tests/doc.rs index e96eb0624..809c10739 100644 --- a/tests/doc.rs +++ b/tests/doc.rs @@ -643,7 +643,8 @@ fn doc_all_workspace() { // The order in which bar is compiled or documented is not deterministic assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") + execs().with_status(0) + .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") .with_stderr_contains("[..] Compiling bar v0.1.0 ([..])") .with_stderr_contains("[..] Documenting foo v0.1.0 ([..])")); } @@ -676,7 +677,8 @@ fn doc_all_virtual_manifest() { // The order in which foo and bar are documented is not guaranteed assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") + execs().with_status(0) + .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") .with_stderr_contains("[..] Documenting foo v0.1.0 ([..])")); } @@ -704,6 +706,7 @@ fn doc_all_member_dependency_same_name() { assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Updating registry `[..]`") + execs().with_status(0) + .with_stderr_contains("[..] Updating registry `[..]`") .with_stderr_contains("[..] Documenting a v0.1.0 ([..])")); }