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 @@...@@ -20,6 +20,7 @@
20//! Additionally, lines reporting unwind errors are removed:20//! Additionally, lines reporting unwind errors are removed:
21//!21//!
22//! Unwind error at address `/proc/self/exe:0x1016533` (unwind info unavailable), remaining frames may be incorrect22//! 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
23//!24//!
24//! With these transformations, the test harness can safely do string comparisons.25//! With these transformations, the test harness can safely do string comparisons.
2526
...@@ -45,7 +46,9 @@ pub fn main() !void {...@@ -45,7 +46,9 @@ pub fn main() !void {
45 const w = &out_fw.interface;46 const w = &out_fw.interface;
4647
47 while (in_fr.interface.takeDelimiterInclusive('\n')) |in_line| {48 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 {
49 // Remove these lines from the output.52 // Remove these lines from the output.
50 continue;53 continue;
51 }54 }