Switch to exhaustive matches in tests.
authorGiles Cope <gilescope@gmail.com>
Thu, 8 Mar 2018 18:37:30 +0000 (18:37 +0000)
committerGiles Cope <gilescope@gmail.com>
Thu, 8 Mar 2018 18:37:30 +0000 (18:37 +0000)
tests/testsuite/build.rs

index 9e5dead5e636c45c052ea2fa29aa73f88bfd5b83..7f80aba13fb0b87a2bcbf82c49cd4d9f2ab7c0f6 100644 (file)
@@ -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)`[..]"#));