Skip to content

Commit

Permalink
std: run test fix for ARM android
Browse files Browse the repository at this point in the history
  • Loading branch information
yichoi committed Aug 7, 2013
1 parent 4da1cfe commit b326176
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/run.rs
Expand Up @@ -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)));
}
}
}
Expand Down

0 comments on commit b326176

Please sign in to comment.