From b32617666a30972f9bcc3c4c619b862f14350d22 Mon Sep 17 00:00:00 2001 From: Young-il Choi Date: Thu, 18 Jul 2013 17:17:47 +0900 Subject: [PATCH] std: run test fix for ARM android --- src/libstd/run.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libstd/run.rs b/src/libstd/run.rs index ef3d881c5fe..68986ff11c2 100644 --- a/src/libstd/run.rs +++ b/src/libstd/run.rs @@ -1311,11 +1311,11 @@ mod tests { let output = str::from_bytes(prog.finish_with_output().output); let r = os::env(); - for &(k, v) in r.iter() { + for &(ref k, ref v) in r.iter() { // don't check android RANDOM variables - if k != ~"RANDOM" { - assert!(output.contains(fmt!("%s=%s", k, v)) || - output.contains(fmt!("%s=\'%s\'", k, v))); + if *k != ~"RANDOM" { + assert!(output.contains(fmt!("%s=%s", *k, *v)) || + output.contains(fmt!("%s=\'%s\'", *k, *v))); } } }