[tools] winetest/dissect: Add support for winedbg's unhandled exception lines.

Francois Gouget fgouget at codeweavers.com
Tue Feb 9 19:15:58 CST 2021


They replace the test framework's "unhandled exception" lines we get on
Windows but specify neither the test unit nor the process pid. So just
assign them to the current test unit.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50538
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/dissect | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/winetest/dissect b/winetest/dissect
index 12a939d28..c20dab654 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -685,6 +685,14 @@ while ($line = <IN>) {
         check_unit($l_unit, "unhandled exception");
         $failures++;
     }
+    elsif ($line =~ /Unhandled exception: .* in .* code /)
+    {
+        # This also replaces a test summary line. The pid is unknown so use 0.
+        $pids{0} = 1;
+        $s_failures++;
+        $failures++;
+        add_test_line("failed", escapeHTML($line));
+    }
     elsif (($unit ne "" and
             $line =~ /([0-9a-f]+):($unit): (\d+) tests? executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\./) or
            $line =~ /^([0-9a-f]+):([_a-z0-9]+): (\d+) tests? executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\./)
-- 
2.20.1



More information about the wine-devel mailing list