mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 01:44:04 +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;
|
assert passed + failed == total;
|
||||||
|
|
||||||
out.write_str(#fmt("\nresults: %u passed; %u failed\n\n",
|
out.write_str(#fmt("\nresult: "));
|
||||||
passed, failed));
|
if (failed == 0u) {
|
||||||
|
write_ok(out);
|
||||||
|
} else {
|
||||||
|
write_failed(out);
|
||||||
|
}
|
||||||
|
out.write_str(#fmt(". %u passed; %u failed\n\n",
|
||||||
|
passed, failed));
|
||||||
|
|
||||||
ret true;
|
ret true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user