Fix broken tests
This commit is contained in:
parent
1b9f740f2f
commit
ebc19034ee
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user