#![crate_name = "compiletest"]
#![feature(test)]
#![feature(vec_remove_item)]
+#![deny(warnings)]
extern crate test;
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0);
println!("{}", opts.usage(&message));
- println!("");
+ println!();
panic!()
}
if matches.opt_present("h") || matches.opt_present("help") {
let message = format!("Usage: {} [OPTIONS] [TESTNAME...]", argv0);
println!("{}", opts.usage(&message));
- println!("");
+ println!();
panic!()
}
skip: vec![],
list: false,
options: test::Options::new(),
+ time_options: None,
}
}
&config.src_base,
&PathBuf::new(),
&mut tests,
- ).unwrap();
+ ).expect(&format!("Could not read tests from {}", config.src_base.display()));
tests
}
ignore,
should_panic,
allow_fail: false,
+ test_type: test::TestType::Unknown,
},
testfn: make_test_closure(config, early_props.ignore, testpaths, revision),
}