From 2cfc28ff2faf93ba1450cbf6907ca9e077373703 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 3 Oct 2023 17:03:00 +0200 Subject: [PATCH] wpt: change test format --- src/run_wpt.zig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/run_wpt.zig b/src/run_wpt.zig index 874b6d99..54b78f96 100644 --- a/src/run_wpt.zig +++ b/src/run_wpt.zig @@ -64,20 +64,18 @@ test { // TODO I don't use testing.expect here b/c I want to execute all the // tests. And testing.expect stops running test in the first failure. - std.debug.print("{s}\t\t", .{tc}); - const res = runWPT(&arena, tc, libs[0..]) catch |err| { - std.debug.print("ERR\n\t> {any}\n", .{err}); + std.debug.print("ERR\t{s}\n\t> {any}\n", .{ tc, err }); failures += 1; continue; }; if (!res.success) { - std.debug.print("ERR\n\t> {s}\n", .{res.result}); + std.debug.print("ERR\t{s}\n\t> {s}\n", .{ tc, res.result }); failures += 1; continue; } - std.debug.print("OK\n", .{}); + std.debug.print("OK\t{s}\n\t> {s}\n", .{ tc, res.result }); } if (failures > 0) {