diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-10-21 22:20:45 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-10-21 22:21:18 -0400 |
| commit | 064377be9aaf409bf483f512354ef22f656bf213 (patch) | |
| tree | 4cdaf2fe444083c465c2b81e3a8b780c9bdd2ebe /lib/std | |
| parent | fc6f84f3f08aca0d4e2352091cc2db2ca5779c7d (diff) | |
| download | zig-064377be9aaf409bf483f512354ef22f656bf213.tar.gz zig-064377be9aaf409bf483f512354ef22f656bf213.zip | |
test runner: restore previous behavior of printing all tests passed
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/special/test_runner.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/special/test_runner.zig b/lib/std/special/test_runner.zig index 78db63e4d6..f835401e1c 100644 --- a/lib/std/special/test_runner.zig +++ b/lib/std/special/test_runner.zig @@ -31,8 +31,9 @@ pub fn main() anyerror!void { } } root_node.end(); - if (ok_count != test_fn_list.len) { - progress.log("{} passed; {} skipped.\n", ok_count, skip_count); - if (progress.terminal == null) std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count); + if (ok_count == test_fn_list.len) { + std.debug.warn("All tests passed.\n"); + } else { + std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count); } } |
