Skip to content

Commit ab726e7

Browse files
committedFeb 26, 2023
Fix test for Windows
1 parent 16ad1f2 commit ab726e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎tests/testsuite/install.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2163,8 +2163,8 @@ fn sparse_install() {
21632163
[UPDATING] `dummy-registry` index
21642164
[COMPILING] foo v0.0.1 (registry `dummy-registry`)
21652165
[FINISHED] release [optimized] target(s) in [..]
2166-
[INSTALLING] [ROOT]/home/.cargo/bin/foo
2167-
[INSTALLED] package `foo v0.0.1 (registry `dummy-registry`)` (executable `foo`)
2166+
[INSTALLING] [ROOT]/home/.cargo/bin/foo[EXE]
2167+
[INSTALLED] package `foo v0.0.1 (registry `dummy-registry`)` (executable `foo[EXE]`)
21682168
[WARNING] be sure to add `[..]` to your PATH to be able to run the installed binaries
21692169
",
21702170
)
@@ -2176,15 +2176,15 @@ fn sparse_install() {
21762176
};
21772177
assert_v1(
21782178
r#"[v1]
2179-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2179+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21802180
"#,
21812181
);
21822182
cargo_process("install bar").run();
21832183
assert_has_installed_exe(cargo_home(), "bar");
21842184
assert_v1(
21852185
r#"[v1]
2186-
"bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["bar"]
2187-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2186+
"bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["bar[EXE]"]
2187+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21882188
"#,
21892189
);
21902190

@@ -2194,7 +2194,7 @@ fn sparse_install() {
21942194
assert_has_not_installed_exe(cargo_home(), "bar");
21952195
assert_v1(
21962196
r#"[v1]
2197-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2197+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21982198
"#,
21992199
);
22002200
cargo_process("uninstall foo")

0 commit comments

Comments
 (0)