File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f4beac4a4337296ab356d69ad1ed42f68f461bf1
2
+ refs/heads/master: 4038010bc658c75b8f6efa99790e611c29e84763
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ fn mk_main(&test_ctxt cx) -> @ast::item {
279
279
ident = "args" ,
280
280
id = cx. next_node_id( ) ) ;
281
281
282
- auto ret_ty = nospan( ast:: ty_int ) ;
282
+ auto ret_ty = nospan( ast:: ty_nil ) ;
283
283
284
284
let ast:: fn_decl decl = rec( inputs = ~[ args_arg] ,
285
285
output = @ret_ty,
Original file line number Diff line number Diff line change @@ -27,11 +27,9 @@ type test_desc = rec(test_name name,
27
27
28
28
// The default console test runner. It accepts the command line
29
29
// 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" ;
35
33
}
36
34
}
37
35
You can’t perform that action at this time.
0 commit comments