mirror of
https://github.com/rust-lang/cargo
synced 2024-10-06 15:59:39 +00:00
Fix tests
This commit is contained in:
parent
0d6c9a9b2c
commit
cce5b3d55e
|
@ -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 }
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue