| ... | @@ -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 incorrect | 22 | //! 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. |
| 25 | | 26 | |
| ... | @@ -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; |
| 46 | | 47 | |
| 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 | } |