mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Improve test runner summary message. Issue #428
This commit is contained in:
parent
9a37308101
commit
ed556ab094
@ -73,8 +73,14 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
|
||||
|
||||
assert passed + failed == total;
|
||||
|
||||
out.write_str(#fmt("\nresults: %u passed; %u failed\n\n",
|
||||
passed, failed));
|
||||
out.write_str(#fmt("\nresult: "));
|
||||
if (failed == 0u) {
|
||||
write_ok(out);
|
||||
} else {
|
||||
write_failed(out);
|
||||
}
|
||||
out.write_str(#fmt(". %u passed; %u failed\n\n",
|
||||
passed, failed));
|
||||
|
||||
ret true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user