std: Fix tests with io_error usage

This commit is contained in:
Alex Crichton
2014-01-30 14:10:53 -08:00
parent 29e7247fd8
commit 209642c651
21 changed files with 567 additions and 699 deletions

View File

@@ -1492,7 +1492,6 @@ mod tests {
use result::{Ok, Err};
use os::*;
use libc::*;
use io;
use io::fs;
#[cfg(unix)]
@@ -1537,8 +1536,7 @@ mod tests {
close(fd);
}
let _guard = io::ignore_io_error();
fs::unlink(&path);
fs::unlink(&path).unwrap();
}
// More recursive_mkdir tests are in extra::tempfile