From: Aleksey Kladov Date: Thu, 16 Feb 2017 11:18:55 +0000 (+0300) Subject: Revive dependency recompilation test X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~139^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=73f870c2643eb7662fc4d37931338aab63fa8a51;p=cargo.git Revive dependency recompilation test --- diff --git a/tests/path.rs b/tests/path.rs index b0d9adb26..1b4594fe6 100644 --- a/tests/path.rs +++ b/tests/path.rs @@ -297,9 +297,17 @@ fn no_rebuild_dependency() { in [..]\n", p.url(), p.url()))); - // This time we shouldn't compile bar + + p.change_file("src/foo.rs", r#" + extern crate bar; + fn main() { bar::bar(); } + "#); + // Don't compile bar, but do recompile foo. assert_that(p.cargo("build"), - execs().with_stdout("")); + execs().with_stderr("\ + [COMPILING] foo v0.5.0 ([..])\n\ + [FINISHED] dev [unoptimized + debuginfo] target(s) \ + in [..]\n")); } #[test]