Skip to content

Commit 5d357f0

Browse files
committed
Auto merge of #14080 - henry40408:issue-14039-minimal-versions, r=weihanglo
test: migrate minimal_versions to snapbox ### What does this PR try to resolve? Part of #14039. Migrate `tests/testsuite/minimal_versions.rs` to snapbox. ### How should we test and review this PR? N/A ### Additional information N/A
2 parents 5586a47 + 4868bf8 commit 5d357f0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/testsuite/minimal_versions.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
//!
33
//! Note: Some tests are located in the resolver-tests package.
44
5-
#![allow(deprecated)]
6-
75
use cargo_test_support::project;
86
use cargo_test_support::registry::Package;
7+
use cargo_test_support::str;
98

109
// Ensure that the "-Z minimal-versions" CLI option works and the minimal
1110
// version of a dependency ends up in the lock file.
@@ -32,13 +31,12 @@ fn minimal_version_cli() {
3231

3332
p.cargo("generate-lockfile -Zminimal-versions")
3433
.masquerade_as_nightly_cargo(&["minimal-versions"])
35-
.with_stderr(
36-
"\
37-
[UPDATING] [..]
34+
.with_stderr_data(str![[r#"
35+
[UPDATING] `dummy-registry` index
3836
[LOCKING] 2 packages to earliest compatible versions
3937
[ADDING] dep v1.0.0 (latest: v1.1.0)
40-
",
41-
)
38+
39+
"#]])
4240
.run();
4341

4442
let lock = p.read_lockfile();

0 commit comments

Comments
 (0)