Skip to content

Commit bf5f0b7

Browse files
committed
tests: profile_custom - add missing stdout/stderr checks
1 parent 6cd8e87 commit bf5f0b7

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

tests/testsuite/profile_custom.rs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,25 @@ fn clean_custom_dirname() {
297297

298298
p.cargo("build --release")
299299
.masquerade_as_nightly_cargo()
300+
.with_stdout("")
301+
.with_stderr(
302+
"\
303+
[COMPILING] foo v0.0.1 ([..])
304+
[FINISHED] release [optimized] target(s) in [..]
305+
",
306+
)
300307
.run();
301308

302309
p.cargo("clean -p foo").masquerade_as_nightly_cargo().run();
303310

304311
p.cargo("build --release")
305312
.masquerade_as_nightly_cargo()
306313
.with_stdout("")
314+
.with_stderr(
315+
"\
316+
[FINISHED] release [optimized] target(s) in [..]
317+
",
318+
)
307319
.run();
308320

309321
p.cargo("clean -p foo --release")
@@ -320,7 +332,16 @@ fn clean_custom_dirname() {
320332
)
321333
.run();
322334

323-
p.cargo("build").masquerade_as_nightly_cargo().run();
335+
p.cargo("build")
336+
.masquerade_as_nightly_cargo()
337+
.with_stdout("")
338+
.with_stderr(
339+
"\
340+
[COMPILING] foo v0.0.1 ([..])
341+
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
342+
",
343+
)
344+
.run();
324345

325346
p.cargo("build -Z unstable-options --profile=other")
326347
.masquerade_as_nightly_cargo()

0 commit comments

Comments
 (0)