From: Giles Cope Date: Thu, 8 Mar 2018 18:37:30 +0000 (+0000) Subject: Switch to exhaustive matches in tests. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~52^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=74deb8c96d6b0f5685578639fabdefb127fc71dc;p=cargo.git Switch to exhaustive matches in tests. --- diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index 9e5dead5e..7f80aba13 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -1531,7 +1531,7 @@ fn self_dependency() { .build(); assert_that(p.cargo("build"), execs().with_status(101) - .with_stderr_contains("\ + .with_stderr("\ [ERROR] cyclic package dependency: package `test v0.0.0 ([..])` depends on itself. Cycle: package `test v0.0.0 ([..]foo)`")); } @@ -2652,7 +2652,7 @@ fn cyclic_deps_rejected() { assert_that(p.cargo("build").arg("-v"), execs().with_status(101) - .with_stderr_contains( + .with_stderr( r#"[ERROR] cyclic package dependency: package `a v0.0.1 ([..])` depends on itself. Cycle: package `a v0.0.1 ([..]a)` ... which is depended on by `foo v0.0.1 ([..]foo)`[..]"#));