From 5f0073896977fe4a177b4b7817ce2b59160ab29d Mon Sep 17 00:00:00 2001 From: mlugg Date: Fri, 12 Sep 2025 03:28:19 +0100 Subject: [PATCH] test-stack-traces: fix on x86-windows --- test/src/convert-stack-trace.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/src/convert-stack-trace.zig b/test/src/convert-stack-trace.zig index b42d15a3e8..c7cd01a460 100644 --- a/test/src/convert-stack-trace.zig +++ b/test/src/convert-stack-trace.zig @@ -20,6 +20,7 @@ //! Additionally, lines reporting unwind errors are removed: //! //! Unwind error at address `/proc/self/exe:0x1016533` (unwind info unavailable), remaining frames may be incorrect +//! Cannot print stack trace: safe unwind unavilable for target //! //! With these transformations, the test harness can safely do string comparisons. @@ -45,7 +46,9 @@ pub fn main() !void { const w = &out_fw.interface; while (in_fr.interface.takeDelimiterInclusive('\n')) |in_line| { - if (std.mem.startsWith(u8, in_line, "Unwind error at address `")) { + if (std.mem.eql(u8, in_line, "Cannot print stack trace: safe unwind unavailable for target\n") or + std.mem.startsWith(u8, in_line, "Unwind error at address `")) + { // Remove these lines from the output. continue; }