auto merge of #8369 : yichoi/rust/arm-test, r=sanxiyn
fix some part of test code to pass make check on ARM Android
This commit is contained in:
commit
c20b90647e
3 changed files with 6 additions and 6 deletions
|
|
@ -1309,11 +1309,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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue