Fix broken tests

This commit is contained in:
Brian Anderson 2012-12-14 14:26:57 -08:00
parent 1b9f740f2f
commit ebc19034ee
2 changed files with 3 additions and 3 deletions

View File

@ -968,7 +968,7 @@ mod tests {
assert vec::len(e) > 0u;
for vec::each(e) |p| {
let (n, v) = copy *p;
log(debug, n);
log(debug, copy n);
let v2 = getenv(n);
// MingW seems to set some funky environment variables like
// "=C:=C:\MinGW\msys\1.0\bin" and "!::=::\" that are returned
@ -1060,7 +1060,7 @@ mod tests {
assert (vec::len(dirs) > 0u);
for vec::each(dirs) |dir| {
log(debug, *dir);
log(debug, copy *dir);
}
}

View File

@ -134,7 +134,7 @@ fn with_envp<T>(env: &Option<~[(~str,~str)]>,
Some(ref es) if !vec::is_empty(*es) => {
let mut blk : ~[u8] = ~[];
for vec::each(*es) |e| {
let (k,v) = *e;
let (k,v) = copy *e;
let t = fmt!("%s=%s", k, v);
let mut v : ~[u8] = ::cast::reinterpret_cast(&t);
blk += v;