Skip to content

Commit bb8e959

Browse files
committed
---
yaml --- r: 3913 b: refs/heads/master c: 4038010 h: refs/heads/master i: 3911: 3e1bbc9 v: v3
1 parent a3d4d95 commit bb8e959

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f4beac4a4337296ab356d69ad1ed42f68f461bf1
2+
refs/heads/master: 4038010bc658c75b8f6efa99790e611c29e84763

trunk/src/comp/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn mk_main(&test_ctxt cx) -> @ast::item {
279279
ident = "args",
280280
id = cx.next_node_id());
281281

282-
auto ret_ty = nospan(ast::ty_int);
282+
auto ret_ty = nospan(ast::ty_nil);
283283

284284
let ast::fn_decl decl = rec(inputs = ~[args_arg],
285285
output = @ret_ty,

trunk/src/lib/test.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ type test_desc = rec(test_name name,
2727

2828
// The default console test runner. It accepts the command line
2929
// arguments and a vector of test_descs (generated at compile time).
30-
fn test_main(&vec[str] args, &test_desc[] tests) -> int {
31-
if (run_tests(parse_opts(args), tests)) {
32-
ret 0;
33-
} else {
34-
ret -1;
30+
fn test_main(&vec[str] args, &test_desc[] tests) {
31+
if (!run_tests(parse_opts(args), tests)) {
32+
fail "Some tests failed";
3533
}
3634
}
3735

0 commit comments

Comments
 (0)