mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
test runner: print error return trace after failed test
This commit is contained in:
parent
75ed835d08
commit
65d279bc05
@ -84,6 +84,9 @@ pub fn main() anyerror!void {
|
||||
test_node.end();
|
||||
progress.log("{s}... FAIL ({s})\n", .{ test_fn.name, @errorName(err) });
|
||||
if (progress.terminal == null) std.debug.print("FAIL ({s})\n", .{@errorName(err)});
|
||||
if (@errorReturnTrace()) |trace| {
|
||||
std.debug.dumpStackTrace(trace.*);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user