Skip to content

Commit f6cd457

Browse files
authored
Merge pull request #2163 from kinnison/fix-missing-host
tests: Fix up lack of for_host!() usage
2 parents 7e7eb08 + 0c22f60 commit f6cd457

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/cli-misc.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ fn override_by_toolchain_on_the_command_line() {
911911
expect_stdout_ok(
912912
config,
913913
&["rustup", "+stable", "which", "rustc"],
914-
"\\toolchains\\stable-x86_64-",
914+
for_host!("\\toolchains\\stable-{}"),
915915
);
916916
#[cfg(windows)]
917917
expect_stdout_ok(
@@ -923,7 +923,7 @@ fn override_by_toolchain_on_the_command_line() {
923923
expect_stdout_ok(
924924
config,
925925
&["rustup", "+stable", "which", "rustc"],
926-
"/toolchains/stable-x86_64-",
926+
for_host!("/toolchains/stable-{}"),
927927
);
928928
#[cfg(not(windows))]
929929
expect_stdout_ok(
@@ -936,7 +936,7 @@ fn override_by_toolchain_on_the_command_line() {
936936
expect_stdout_ok(
937937
config,
938938
&["rustup", "+nightly", "which", "rustc"],
939-
"\\toolchains\\nightly-x86_64-",
939+
for_host!("\\toolchains\\nightly-{}"),
940940
);
941941
#[cfg(windows)]
942942
expect_stdout_ok(
@@ -948,7 +948,7 @@ fn override_by_toolchain_on_the_command_line() {
948948
expect_stdout_ok(
949949
config,
950950
&["rustup", "+nightly", "which", "rustc"],
951-
"/toolchains/nightly-x86_64-",
951+
for_host!("/toolchains/nightly-{}"),
952952
);
953953
#[cfg(not(windows))]
954954
expect_stdout_ok(
@@ -976,7 +976,7 @@ fn override_by_toolchain_on_the_command_line() {
976976
&["rustup", "+stable", "set", "profile", "minimal"],
977977
"profile set to 'minimal'",
978978
);
979-
expect_stdout_ok(config, &["rustup", "default"], "nightly-x86_64-");
979+
expect_stdout_ok(config, &["rustup", "default"], for_host!("nightly-{}"));
980980
});
981981
}
982982

tests/cli-v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ fn list_toolchains() {
108108
expect_stdout_ok(
109109
config,
110110
&["rustup", "toolchain", "list", "-v"],
111-
"\\toolchains\\nightly-x86",
111+
for_host!("\\toolchains\\nightly-{}"),
112112
);
113113
#[cfg(not(windows))]
114114
expect_stdout_ok(
115115
config,
116116
&["rustup", "toolchain", "list", "-v"],
117-
"/toolchains/nightly-x86",
117+
for_host!("/toolchains/nightly-{}"),
118118
);
119119
expect_stdout_ok(config, &["rustup", "toolchain", "list"], "beta-2015-01-01");
120120
#[cfg(windows)]

tests/cli-v2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ fn list_toolchains() {
152152
expect_stdout_ok(
153153
config,
154154
&["rustup", "toolchain", "list", "-v"],
155-
"\\toolchains\\nightly-x86",
155+
for_host!("\\toolchains\\nightly-{}"),
156156
);
157157
#[cfg(not(windows))]
158158
expect_stdout_ok(
159159
config,
160160
&["rustup", "toolchain", "list", "-v"],
161-
"/toolchains/nightly-x86",
161+
for_host!("/toolchains/nightly-{}"),
162162
);
163163
expect_stdout_ok(config, &["rustup", "toolchain", "list"], "beta-2015-01-01");
164164
#[cfg(windows)]

0 commit comments

Comments
 (0)