File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 2cb3a798abb12153d48c705f85358d54abe705d5
2
+ refs/heads/master: 3fb33008ce5bdd1e369b471bc20b6fe28c0f550e
Original file line number Diff line number Diff line change @@ -129,17 +129,18 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
129
129
}
130
130
131
131
assert passed + failed + ignored == total;
132
+ auto success = failed == 0 u;
132
133
133
134
out. write_str( #fmt( "\n result: " ) ) ;
134
- if ( failed == 0 u ) {
135
+ if ( success ) {
135
136
write_ok( out) ;
136
137
} else {
137
138
write_failed( out) ;
138
139
}
139
140
out. write_str( #fmt( ". %u passed; %u failed; %u ignored\n \n " ,
140
141
passed, failed, ignored) ) ;
141
142
142
- ret true ;
143
+ ret success ;
143
144
144
145
fn write_ok( & io:: writer out) {
145
146
write_pretty( out, "ok" , term:: color_green) ;
You can’t perform that action at this time.
0 commit comments