Skip to content

Instantly share code, notes, and snippets.

@Ygg01
Created May 9, 2017 10:12
Show Gist options
  • Save Ygg01/0a9d50409ed10ec76c42fa4528b91f1f to your computer and use it in GitHub Desktop.
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
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