Skip to content

Commit 86c6e42

Browse files
author
Nick Flueckiger
committed
Fix windows test case
1 parent c863102 commit 86c6e42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/testsuite/tool_paths.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,12 @@ fn target_in_environment_contains_lower_case_on_windows() {
389389
for target_key in &target_keys {
390390
p.cargo("build -v --target x86_64-unknown-linux-musl")
391391
.env(target_key, "nonexistent-linker")
392-
.with_status(0)
392+
.with_status(101)
393+
.with_stderr_does_not_contain(format!(
394+
"warning: Environment variables require uppercase letters, \
395+
but the variable: `{}` contains lowercase letters or dashes.",
396+
target_key
397+
))
393398
.run();
394399
}
395400
}

0 commit comments

Comments
 (0)