diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-02 13:14:14 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-02 13:14:14 -0700 |
| commit | 53cdaa58d30216c1f8f2536ab8cb307e3cec8611 (patch) | |
| tree | 6cb3292bbab5c43439d1710aa637563e1318758a /src/libstd/io | |
| parent | b2d4eb186e99b66051be9089f836c66a558dd995 (diff) | |
| download | rust-53cdaa58d30216c1f8f2536ab8cb307e3cec8611.tar.gz rust-53cdaa58d30216c1f8f2536ab8cb307e3cec8611.zip | |
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.
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/process.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index 5220e5c984a..d8be92e4514 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -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")] |
