Fix tests

This commit is contained in:
Aleksey Kladov 2017-07-09 13:31:42 +03:00
parent 0d6c9a9b2c
commit cce5b3d55e
3 changed files with 5 additions and 12 deletions

View file

@ -1341,8 +1341,8 @@ fn git_dep_build_cmd() {
build = "build.rs"
[lib]
name = "bar"
path = "src/bar.rs"
"#)
.file("bar/src/bar.rs.in", r#"
pub fn gimme() -> i32 { 0 }

View file

@ -535,12 +535,9 @@ fn error_message_for_missing_manifest() {
[dependencies.bar]
path = "src/bar"
[lib]
name = "foo"
"#)
.file("src/bar/not-a-manifest", "");
.file("src/lib.rs", "")
.file("src/bar/not-a-manifest", "");
assert_that(p.cargo_process("build"),
execs().with_status(101)
@ -704,8 +701,8 @@ fn path_dep_build_cmd() {
build = "build.rs"
[lib]
name = "bar"
path = "src/bar.rs"
"#)
.file("bar/build.rs", r#"
use std::fs;

View file

@ -251,7 +251,6 @@ fn native_plugin_dependency_with_custom_ar_linker() {
authors = []
[lib]
name = "foo"
plugin = true
"#)
.file("src/lib.rs", "");
@ -263,13 +262,10 @@ fn native_plugin_dependency_with_custom_ar_linker() {
version = "0.0.1"
authors = []
[lib]
name = "bar"
[dependencies.foo]
path = "../foo"
"#)
.file("src/lib", "")
.file("src/lib.rs", "")
.file(".cargo/config", &format!(r#"
[target.{}]
ar = "nonexistent-ar"