Purge vecs from the std::test interface

This commit is contained in:
Brian Anderson 2011-08-16 22:27:02 -07:00
parent 7bd0437b08
commit 53df58a177
2 changed files with 2 additions and 6 deletions

View File

@ -355,7 +355,7 @@ fn mk_test_main_call(cx: &test_ctxt) -> @ast::expr {
// Call std::test::test_main
let test_main_path: ast::path =
nospan({global: false,
idents: ~["std", "test", "test_main_ivec"],
idents: ~["std", "test", "test_main"],
types: ~[]});
let test_main_path_expr_: ast::expr_ = ast::expr_path(test_main_path);

View File

@ -49,7 +49,7 @@ type test_desc = {name: test_name, fn: test_fn, ignore: bool};
// The default console test runner. It accepts the command line
// arguments and a vector of test_descs (generated at compile time).
fn test_main_ivec(args: &[str], tests: &[test_desc]) {
fn test_main(args: &[str], tests: &[test_desc]) {
check (vec::is_not_empty(args));
let opts =
alt parse_opts(args) {
@ -59,10 +59,6 @@ fn test_main_ivec(args: &[str], tests: &[test_desc]) {
if !run_tests_console(opts, tests) { fail "Some tests failed"; }
}
fn test_main(args: &vec<str>, tests: &[test_desc]) {
test_main_ivec(vec::from_vec(args), tests);
}
type test_opts = {filter: option::t<str>, run_ignored: bool};
type opt_res = either::t<test_opts, str>;