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.
This commit is contained in:
parent
b2d4eb186e
commit
53cdaa58d3
@ -958,7 +958,9 @@ mod tests {
|
||||
// don't check windows magical empty-named variables
|
||||
assert!(k.is_empty() ||
|
||||
output.as_slice()
|
||||
.contains(format!("{}={}", *k, *v).as_slice()));
|
||||
.contains(format!("{}={}", *k, *v).as_slice()),
|
||||
"output doesn't contain `{}={}`\n{}",
|
||||
k, v, output);
|
||||
}
|
||||
}
|
||||
#[cfg(target_os="android")]
|
||||
|
Loading…
Reference in New Issue
Block a user