1
Fork 0

remove some compiler warnings

This commit is contained in:
Tshepang Lekhonkhobe 2015-02-28 20:07:05 +02:00
parent 8902936552
commit 55ce45e7b5
12 changed files with 25 additions and 31 deletions

View file

@ -761,14 +761,13 @@ mod tests {
#[cfg(not(target_os="android"))]
#[test]
fn test_inherit_env() {
use os;
use std::env;
if running_on_valgrind() { return; }
let result = env_cmd().output().unwrap();
let output = String::from_utf8(result.stdout).unwrap();
let r = os::env();
for &(ref k, ref v) in &r {
for (ref k, ref v) in env::vars() {
// don't check windows magical empty-named variables
assert!(k.is_empty() ||
output.contains(format!("{}={}", *k, *v).as_slice()),