Skip to content

Commit

Permalink
test(msrv): Use variables
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Mar 1, 2024
1 parent 3bb0697 commit 41449f7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tests/testsuite/rust_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ fn rust_version_too_high() {
p.cargo("check")
.with_status(101)
.with_stderr(
"error: package `foo v0.0.1 ([..])` cannot be built because it requires \
rustc 1.9876.0 or newer, while the currently active rustc version is [..]\n\n",
"\
[ERROR] package `foo v0.0.1 ([..])` cannot be built because it requires rustc 1.9876.0 or newer, while the currently active rustc version is [..]
",
)
.run();
p.cargo("check --ignore-rust-version").run();
Expand Down Expand Up @@ -212,14 +214,14 @@ fn dependency_rust_version_newer_than_rustc() {
p.cargo("check")
.with_status(101)
.with_stderr(
" Updating `[..]` index\n \
Downloading crates ...\n \
Downloaded bar v0.0.1 (registry `[..]`)\n\
error: package `bar v0.0.1` cannot be built because it requires \
rustc 1.2345.0 or newer, while the currently active rustc version is [..]\n\
Either upgrade to rustc 1.2345.0 or newer, or use\n\
cargo update [email protected] --precise ver\n\
where `ver` is the latest version of `bar` supporting rustc [..]",
"\
[UPDATING] `[..]` index
[DOWNLOADING] crates ...
[DOWNLOADED] bar v0.0.1 (registry `[..]`)
[ERROR] package `bar v0.0.1` cannot be built because it requires rustc 1.2345.0 or newer, while the currently active rustc version is [..]
Either upgrade to rustc 1.2345.0 or newer, or use
cargo update [email protected] --precise ver
where `ver` is the latest version of `bar` supporting rustc [..]",
)
.run();
p.cargo("check --ignore-rust-version").run();
Expand Down

0 comments on commit 41449f7

Please sign in to comment.