mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test(rustdoc): glob support for package selection
This commit is contained in:
parent
db313e54a2
commit
570aea75ea
@ -226,3 +226,23 @@ fn rustdoc_target() {
|
||||
))
|
||||
.run();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn fail_with_glob() {
|
||||
let p = project()
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
r#"
|
||||
[workspace]
|
||||
members = ["bar"]
|
||||
"#,
|
||||
)
|
||||
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
|
||||
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")
|
||||
.build();
|
||||
|
||||
p.cargo("rustdoc -p '*z'")
|
||||
.with_status(101)
|
||||
.with_stderr("[ERROR] Glob patterns on package selection are not supported.")
|
||||
.run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user