We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e24fffe + dd162d7 commit d125dddCopy full SHA for d125ddd
src/libstd/process.rs
@@ -803,8 +803,10 @@ mod tests {
803
let output = String::from_utf8(result.stdout).unwrap();
804
805
for (ref k, ref v) in env::vars() {
806
- // don't check windows magical empty-named variables
807
- assert!(k.is_empty() ||
+ // Windows has hidden environment variables whose names start with
+ // equals signs (`=`). Those do not show up in the output of the
808
+ // `set` command.
809
+ assert!((cfg!(windows) && k.starts_with("=")) ||
810
output.contains(&format!("{}={}", *k, *v)),
811
"output doesn't contain `{}={}`\n{}",
812
k, v, output);
0 commit comments