| author | |
| committer | |
| log | df574ccf8655726dc204142e7bcfb36770426257 |
| tree | ad9c5af1fba48375955db8b9585507f7020c6e84 |
| parent | 1f4c7d5ebfd4ae88d57b6c923d9ef4d2154e193d |
tracking issue #1274;
tests can be skipped by returnning `error.skip` :1 files changed, 7 insertions(+), 1 deletions(-)
std/special/test_runner.zig+7-1| ... | ... | @@ -8,7 +8,13 @@ pub fn main() !void { |
| 8 | 8 | for (test_fn_list) |test_fn, i| { |
| 9 | 9 | warn("Test {}/{} {}...", i + 1, test_fn_list.len, test_fn.name); |
| 10 | 10 | |
| 11 | try test_fn.func(); | |
| 11 | test_fn.func() catch |err| { | |
| 12 | if (err == error.skip) { | |
| 13 | warn("SKIPPED\n"); | |
| 14 | continue; | |
| 15 | } | |
| 16 | return err; | |
| 17 | }; | |
| 12 | 18 | |
| 13 | 19 | warn("OK\n"); |
| 14 | 20 | } |