Skip to content

Commit 726dabf

Browse files
committed
---
yaml --- r: 4071 b: refs/heads/master c: e891e0b h: refs/heads/master i: 4069: e8873fc 4067: 6aee84f 4063: a928e43 v: v3
1 parent 1145b19 commit 726dabf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
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: b9b674abe70dd6f666ac3318e26d28c8f61b8e40
2+
refs/heads/master: e891e0b9924f5c5a4d417b6741d1001bc4f71ec5

trunk/src/lib/test.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
107107
auto failed = 0u;
108108
auto ignored = 0u;
109109

110+
auto failures = ~[];
111+
110112
for (test_desc test in filtered_tests) {
111113
out.write_str(#fmt("running %s ... ", test.name));
112114
alt (run_test(test)) {
@@ -119,6 +121,7 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
119121
failed += 1u;
120122
write_failed(out);
121123
out.write_line("");
124+
failures += ~[test];
122125
}
123126
tr_ignored {
124127
ignored += 1u;
@@ -131,6 +134,13 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
131134
assert passed + failed + ignored == total;
132135
auto success = failed == 0u;
133136

137+
if (!success) {
138+
out.write_line("\nfailures:");
139+
for (test_desc test in failures) {
140+
out.write_line(#fmt(" %s", test.name));
141+
}
142+
}
143+
134144
out.write_str(#fmt("\nresult: "));
135145
if (success) {
136146
write_ok(out);

0 commit comments

Comments
 (0)