Skip to content

Commit ed34695

Browse files
committed
Fix test for Windows
1 parent 9b0317b commit ed34695

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/testsuite/install.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,8 +2125,8 @@ fn sparse_install() {
21252125
[UPDATING] `dummy-registry` index
21262126
[COMPILING] foo v0.0.1 (registry `dummy-registry`)
21272127
[FINISHED] release [optimized] target(s) in [..]
2128-
[INSTALLING] [ROOT]/home/.cargo/bin/foo
2129-
[INSTALLED] package `foo v0.0.1 (registry `dummy-registry`)` (executable `foo`)
2128+
[INSTALLING] [ROOT]/home/.cargo/bin/foo[EXE]
2129+
[INSTALLED] package `foo v0.0.1 (registry `dummy-registry`)` (executable `foo[EXE]`)
21302130
[WARNING] be sure to add `[..]` to your PATH to be able to run the installed binaries
21312131
",
21322132
)
@@ -2138,15 +2138,15 @@ fn sparse_install() {
21382138
};
21392139
assert_v1(
21402140
r#"[v1]
2141-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2141+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21422142
"#,
21432143
);
21442144
cargo_process("install bar").run();
21452145
assert_has_installed_exe(cargo_home(), "bar");
21462146
assert_v1(
21472147
r#"[v1]
2148-
"bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["bar"]
2149-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2148+
"bar 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["bar[EXE]"]
2149+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21502150
"#,
21512151
);
21522152

@@ -2156,7 +2156,7 @@ fn sparse_install() {
21562156
assert_has_not_installed_exe(cargo_home(), "bar");
21572157
assert_v1(
21582158
r#"[v1]
2159-
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo"]
2159+
"foo 0.0.1 (sparse+http://127.0.0.1:[..]/index/)" = ["foo[EXE]"]
21602160
"#,
21612161
);
21622162
cargo_process("uninstall foo")

0 commit comments

Comments
 (0)