1
Fork 0

compiletest: Remove io_error usage

This commit is contained in:
Alex Crichton 2014-01-30 14:37:10 -08:00
parent 5e8ba7252a
commit 27a9bf773c
3 changed files with 25 additions and 17 deletions

View file

@ -234,7 +234,13 @@ pub fn run_tests(config: &config) {
// For context, see #8904
io::test::raise_fd_limit();
let res = test::run_tests_console(&opts, tests);
if !res { fail!("Some tests failed"); }
match res {
Ok(true) => {}
Ok(false) => fail!("Some tests failed"),
Err(e) => {
println!("I/O failure during tests: {}", e);
}
}
}
pub fn test_opts(config: &config) -> test::TestOpts {
@ -255,7 +261,7 @@ pub fn make_tests(config: &config) -> ~[test::TestDescAndFn] {
debug!("making tests from {}",
config.src_base.display());
let mut tests = ~[];
let dirs = fs::readdir(&config.src_base);
let dirs = fs::readdir(&config.src_base).unwrap();
for file in dirs.iter() {
let file = file.clone();
debug!("inspecting file {}", file.display());