diff options
Diffstat (limited to 'test/src/convert-stack-trace.zig')
| -rw-r--r-- | test/src/convert-stack-trace.zig | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |
