Skip to content

Commit 8d66a02

Browse files
committed
chore: update profile_overrides tests to use check
1 parent a726b8d commit 8d66a02

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/testsuite/profile_overrides.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ fn profile_override_basic() {
2929
.file("bar/src/lib.rs", "")
3030
.build();
3131

32-
p.cargo("build -v")
32+
p.cargo("check -v")
3333
.with_stderr(
34-
"[COMPILING] bar [..]
34+
"[CHECKING] bar [..]
3535
[RUNNING] `rustc --crate-name bar [..] -C opt-level=3 [..]`
36-
[COMPILING] foo [..]
36+
[CHECKING] foo [..]
3737
[RUNNING] `rustc --crate-name foo [..] -C opt-level=1 [..]`
3838
[FINISHED] dev [optimized + debuginfo] target(s) in [..]",
3939
)
@@ -125,7 +125,7 @@ fn profile_override_bad_settings() {
125125
.file("bar/src/lib.rs", "")
126126
.build();
127127

128-
p.cargo("build")
128+
p.cargo("check")
129129
.with_status(101)
130130
.with_stderr_contains(format!("Caused by:\n {}", expected))
131131
.run();
@@ -257,7 +257,7 @@ fn profile_override_spec_multiple() {
257257
.file("bar/src/lib.rs", "")
258258
.build();
259259

260-
p.cargo("build -v")
260+
p.cargo("check -v")
261261
.with_status(101)
262262
.with_stderr_contains(
263263
"\
@@ -323,7 +323,7 @@ fn profile_override_spec() {
323323
.file("src/lib.rs", "")
324324
.build();
325325

326-
p.cargo("build -v")
326+
p.cargo("check -v")
327327
.with_stderr_contains("[RUNNING] `rustc [..]dep1/src/lib.rs [..] -C codegen-units=1 [..]")
328328
.with_stderr_contains("[RUNNING] `rustc [..]dep2/src/lib.rs [..] -C codegen-units=2 [..]")
329329
.run();
@@ -378,7 +378,7 @@ fn override_proc_macro() {
378378
)
379379
.build();
380380

381-
p.cargo("build -v")
381+
p.cargo("check -v")
382382
// Shared built for the proc-macro.
383383
.with_stderr_contains("[RUNNING] `rustc [..]--crate-name shared [..]-C codegen-units=4[..]")
384384
// Shared built for the library.
@@ -414,10 +414,10 @@ fn no_warning_ws() {
414414
.file("b/src/lib.rs", "")
415415
.build();
416416

417-
p.cargo("build -p b")
417+
p.cargo("check -p b")
418418
.with_stderr(
419419
"\
420-
[COMPILING] b [..]
420+
[CHECKING] b [..]
421421
[FINISHED] [..]
422422
",
423423
)

0 commit comments

Comments
 (0)