authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-09-12 03:28:19+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-09-30 13:44:53+01:00
log5f0073896977fe4a177b4b7817ce2b59160ab29d
treebc0d7f4934d7cdc9a7a51a8880e33e1100ae97dd
parent344ab62b3fa4fc286b76a51ac47f0b8363339bee
signaturelock-open Commit is signed but in an unrecognized format.

test-stack-traces: fix on x86-windows


1 files changed, 4 insertions(+), 1 deletions(-)

test/src/convert-stack-trace.zig+4-1
......@@ -20,6 +20,7 @@
2020//! Additionally, lines reporting unwind errors are removed:
2121//!
2222//! Unwind error at address `/proc/self/exe:0x1016533` (unwind info unavailable), remaining frames may be incorrect
23//! Cannot print stack trace: safe unwind unavilable for target
2324//!
2425//! With these transformations, the test harness can safely do string comparisons.
2526
......@@ -45,7 +46,9 @@ pub fn main() !void {
4546 const w = &out_fw.interface;
4647
4748 while (in_fr.interface.takeDelimiterInclusive('\n')) |in_line| {
48 if (std.mem.startsWith(u8, in_line, "Unwind error at address `")) {
49 if (std.mem.eql(u8, in_line, "Cannot print stack trace: safe unwind unavailable for target\n") or
50 std.mem.startsWith(u8, in_line, "Unwind error at address `"))
51 {
4952 // Remove these lines from the output.
5053 continue;
5154 }