Skip to content

Commit

Permalink
Add -v to some feature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbln committed Dec 28, 2022
1 parent 0beb5fe commit 2071acd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/testsuite/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,14 @@ fn no_feature_doesnt_build() {
.run();
p.process(&p.bin("foo")).with_stdout("").run();

p.cargo("build --features bar")
p.cargo("build --features bar -v")
.with_stderr(
"\
[COMPILING] bar v0.0.1 ([CWD]/bar)
[RUNNING] `rustc --crate-name bar [..]
[DIRTY-MSVC] foo v0.0.1 ([CWD]): the list of features changed
[COMPILING] foo v0.0.1 ([CWD])
[RUNNING] `rustc --crate-name foo [..]
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
",
)
Expand Down Expand Up @@ -537,10 +540,12 @@ fn default_feature_pulled_in() {
.run();
p.process(&p.bin("foo")).with_stdout("bar\n").run();

p.cargo("build --no-default-features")
p.cargo("build --no-default-features -v")
.with_stderr(
"\
[DIRTY-MSVC] foo v0.0.1 ([CWD]): the list of features changed
[COMPILING] foo v0.0.1 ([CWD])
[RUNNING] `rustc --crate-name foo [..]
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
",
)
Expand Down

0 comments on commit 2071acd

Please sign in to comment.