wpt: change test format

This commit is contained in:
Pierre Tachoire
2023-10-03 17:03:00 +02:00
parent a27a24fe8c
commit 2cfc28ff2f

View File

@@ -64,20 +64,18 @@ test {
// TODO I don't use testing.expect here b/c I want to execute all the // 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. // 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| { 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; failures += 1;
continue; continue;
}; };
if (!res.success) { 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; failures += 1;
continue; continue;
} }
std.debug.print("OK\n", .{}); std.debug.print("OK\t{s}\n\t> {s}\n", .{ tc, res.result });
} }
if (failures > 0) { if (failures > 0) {