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:
Alex Crichton 2014-10-02 13:14:14 -07:00
parent b2d4eb186e
commit 53cdaa58d3

View File

@ -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")]