Skip to content

Commit 341c400

Browse files
committed
chore: update paths tests to use check
1 parent 5775947 commit 341c400

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/testsuite/paths.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn broken_path_override_warns() {
5151
.file(".cargo/config", r#"paths = ["a2"]"#)
5252
.build();
5353

54-
p.cargo("build")
54+
p.cargo("check")
5555
.with_stderr(
5656
"\
5757
[UPDATING] [..]
@@ -72,9 +72,9 @@ https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html
7272
7373
[DOWNLOADING] crates ...
7474
[DOWNLOADED] [..]
75-
[COMPILING] [..]
76-
[COMPILING] [..]
77-
[COMPILING] [..]
75+
[CHECKING] [..]
76+
[CHECKING] [..]
77+
[CHECKING] [..]
7878
[FINISHED] [..]
7979
",
8080
)
@@ -118,7 +118,7 @@ fn override_to_path_dep() {
118118
.file(".cargo/config", r#"paths = ["bar"]"#)
119119
.build();
120120

121-
p.cargo("build").run();
121+
p.cargo("check").run();
122122
}
123123

124124
#[cargo_test]
@@ -168,11 +168,11 @@ fn paths_ok_with_optional() {
168168
.file(".cargo/config", r#"paths = ["bar2"]"#)
169169
.build();
170170

171-
p.cargo("build")
171+
p.cargo("check")
172172
.with_stderr(
173173
"\
174-
[COMPILING] bar v0.1.0 ([..]bar2)
175-
[COMPILING] foo v0.0.1 ([..])
174+
[CHECKING] bar v0.1.0 ([..]bar2)
175+
[CHECKING] foo v0.0.1 ([..])
176176
[FINISHED] [..]
177177
",
178178
)
@@ -215,7 +215,7 @@ fn paths_add_optional_bad() {
215215
.file(".cargo/config", r#"paths = ["bar2"]"#)
216216
.build();
217217

218-
p.cargo("build")
218+
p.cargo("check")
219219
.with_stderr_contains(
220220
"\
221221
warning: path override for crate `bar` has altered the original list of

0 commit comments

Comments
 (0)