diff --git a/src/comp/front/test.rs b/src/comp/front/test.rs index 86944452662e..36507cd6a004 100644 --- a/src/comp/front/test.rs +++ b/src/comp/front/test.rs @@ -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); diff --git a/src/lib/test.rs b/src/lib/test.rs index 9cde409df934..5b6d6b34c97e 100644 --- a/src/lib/test.rs +++ b/src/lib/test.rs @@ -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, tests: &[test_desc]) { - test_main_ivec(vec::from_vec(args), tests); -} - type test_opts = {filter: option::t, run_ignored: bool}; type opt_res = either::t;