Skip to content

Commit 53cdaa5

Browse files
committed
std: Help diagnose a flaky test
This test has recently been failing on the bots, and I'm not entirely sure why. I haven't been able to reproduce locally or on the bots, so I'm adding some messages to help diagnose the problem hopefully.
1 parent b2d4eb1 commit 53cdaa5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/io/process.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,9 @@ mod tests {
958958
// don't check windows magical empty-named variables
959959
assert!(k.is_empty() ||
960960
output.as_slice()
961-
.contains(format!("{}={}", *k, *v).as_slice()));
961+
.contains(format!("{}={}", *k, *v).as_slice()),
962+
"output doesn't contain `{}={}`\n{}",
963+
k, v, output);
962964
}
963965
}
964966
#[cfg(target_os="android")]

0 commit comments

Comments
 (0)