Created
May 9, 2017 10:12
-
-
Save Ygg01/0a9d50409ed10ec76c42fa4528b91f1f to your computer and use it in GitHub Desktop.
build.rs script fails, even when it shouldn't even execute and I can't get member build.rs to fail at all
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let p = project("foo") | |
.file("Cargo.toml", r#" | |
[project] | |
name = "foo" | |
version = "0.5.0" | |
authors = [] | |
[workspace] | |
members = ["a"] | |
"#) | |
.file("src/lib.rs", "") | |
.file("build.rs", r#" | |
fn main() { | |
//panic!("WILL FAIL"); | |
} | |
"#) | |
.file("a/Cargo.toml", r#" | |
[project] | |
name = "a" | |
version = "0.5.0" | |
authors = [] | |
links = "foo" | |
build = "build.rs" | |
"#) | |
.file("a/src/lib.rs", "") | |
.file("a/build.rs", r#" | |
fn main() { | |
panic!("PASSES?"); | |
} | |
"#); | |
assert_that(p.cargo_process("build").arg("-v"), | |
execs().with_status(0)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment