diff --git a/tests/test_cargo_compile_git_deps.rs b/tests/test_cargo_compile_git_deps.rs index 9eb6a6912..c50a255d6 100644 --- a/tests/test_cargo_compile_git_deps.rs +++ b/tests/test_cargo_compile_git_deps.rs @@ -1181,6 +1181,8 @@ test!(git_dep_build_cmd { "#) }).assert(); + p.root().join("bar").move_into_the_past().assert(); + assert_that(p.process(cargo_dir().join("cargo")).arg("build"), execs().with_status(0)); diff --git a/tests/test_cargo_compile_path_deps.rs b/tests/test_cargo_compile_path_deps.rs index 18be3e75a..c96e3dcf3 100644 --- a/tests/test_cargo_compile_path_deps.rs +++ b/tests/test_cargo_compile_path_deps.rs @@ -667,7 +667,10 @@ test!(path_dep_build_cmd { pub fn gimme() -> int { 0 } "#); - assert_that(p.cargo_process("build"), + p.build(); + p.root().join("bar").move_into_the_past().assert(); + + assert_that(p.process(cargo_dir().join("cargo")).arg("build"), execs().with_stdout(format!("{} bar v0.5.0 ({})\n\ {} foo v0.5.0 ({})\n", COMPILING, p.url(),