mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 03:32:39 +00:00
testsuite: profile_custom - add conflicting_usage
This commit is contained in:
parent
ac2a4382ee
commit
ea2b1b5c2c
|
@ -212,3 +212,31 @@ fn overrides_with_custom() {
|
|||
)
|
||||
.run();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn conflicting_usage() {
|
||||
let p = project()
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
r#"
|
||||
[package]
|
||||
name = "foo"
|
||||
version = "0.0.1"
|
||||
authors = []
|
||||
"#,
|
||||
)
|
||||
.file("src/lib.rs", "")
|
||||
.build();
|
||||
|
||||
p.cargo("build -Z unstable-options --profile=dev --release")
|
||||
.masquerade_as_nightly_cargo()
|
||||
.with_status(101)
|
||||
.with_stderr_unordered("error: Conflicting usage of --profile and --release")
|
||||
.run();
|
||||
|
||||
p.cargo("install -Z unstable-options --profile=release --debug")
|
||||
.masquerade_as_nightly_cargo()
|
||||
.with_status(101)
|
||||
.with_stderr_unordered("error: Conflicting usage of --profile and --debug")
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue