Skip to content

Commit 5ff42ab

Browse files
committed
Ignore LD_PRELOAD for inherited environment test
1 parent 1310212 commit 5ff42ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/run.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,8 +1154,11 @@ mod tests {
11541154
let output = str::from_bytes(prog.finish_with_output().output);
11551155
11561156
for os::env().each |&(k, v)| {
1157+
// LD_PRELOAD doesn't get passed to children it seems
1158+
if k == ~"LD_PRELOAD" { loop }
11571159
// don't check windows magical empty-named variables
1158-
assert!(k.is_empty() || output.contains(fmt!("%s=%s", k, v)));
1160+
assert!(k.is_empty() || output.contains(fmt!("%s=%s", k, v)),
1161+
"Output (%s) doesn't contain \"%s=%s\"", output, k, v);
11591162
}
11601163
}
11611164

0 commit comments

Comments
 (0)