mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
chore: update pub_priv
tests to use check
This commit is contained in:
parent
41738bea7e
commit
1b9af485c1
@ -32,7 +32,7 @@ fn exported_priv_warning() {
|
|||||||
)
|
)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build --message-format=short")
|
p.cargo("check --message-format=short")
|
||||||
.masquerade_as_nightly_cargo(&["public-dependency"])
|
.masquerade_as_nightly_cargo(&["public-dependency"])
|
||||||
.with_stderr_contains(
|
.with_stderr_contains(
|
||||||
"\
|
"\
|
||||||
@ -71,15 +71,15 @@ fn exported_pub_dep() {
|
|||||||
)
|
)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build --message-format=short")
|
p.cargo("check --message-format=short")
|
||||||
.masquerade_as_nightly_cargo(&["public-dependency"])
|
.masquerade_as_nightly_cargo(&["public-dependency"])
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[UPDATING] `[..]` index
|
[UPDATING] `[..]` index
|
||||||
[DOWNLOADING] crates ...
|
[DOWNLOADING] crates ...
|
||||||
[DOWNLOADED] pub_dep v0.1.0 ([..])
|
[DOWNLOADED] pub_dep v0.1.0 ([..])
|
||||||
[COMPILING] pub_dep v0.1.0
|
[CHECKING] pub_dep v0.1.0
|
||||||
[COMPILING] foo v0.0.1 ([CWD])
|
[CHECKING] foo v0.0.1 ([CWD])
|
||||||
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
|
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
@ -98,7 +98,7 @@ pub fn requires_nightly_cargo() {
|
|||||||
.file("src/lib.rs", "")
|
.file("src/lib.rs", "")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build --message-format=short")
|
p.cargo("check --message-format=short")
|
||||||
.with_status(101)
|
.with_status(101)
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
@ -134,7 +134,7 @@ fn requires_feature() {
|
|||||||
.file("src/lib.rs", "")
|
.file("src/lib.rs", "")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build --message-format=short")
|
p.cargo("check --message-format=short")
|
||||||
.masquerade_as_nightly_cargo(&["public-dependency"])
|
.masquerade_as_nightly_cargo(&["public-dependency"])
|
||||||
.with_status(101)
|
.with_status(101)
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
@ -184,7 +184,7 @@ fn pub_dev_dependency() {
|
|||||||
)
|
)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("build --message-format=short")
|
p.cargo("check --message-format=short")
|
||||||
.masquerade_as_nightly_cargo(&["public-dependency"])
|
.masquerade_as_nightly_cargo(&["public-dependency"])
|
||||||
.with_status(101)
|
.with_status(101)
|
||||||
.with_stderr(
|
.with_stderr(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user