Francois Gouget : winetest/dissect: Handle child process crashes.

Alexandre Julliard julliard at winehq.org
Thu Feb 11 15:37:05 CST 2021


Module: tools
Branch: master
Commit: 19fc5428430d5c207858af002fe8824ffdcb91e5
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=19fc5428430d5c207858af002fe8824ffdcb91e5

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Feb 11 13:59:13 2021 +0100

winetest/dissect: Handle child process crashes.

Make sure they are included in the failure count.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48651
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 winetest/dissect | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/winetest/dissect b/winetest/dissect
index c20dab6..c1590ba 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -693,6 +693,21 @@ while ($line = <IN>) {
         $failures++;
         add_test_line("failed", escapeHTML($line));
     }
+    elsif (($unit ne "" and
+            $line =~ /($units_re):\d+: unhandled exception [0-9a-fA-F]{8} in child process ([0-9a-f]+)/) or
+           $line =~ /^([_.a-z0-9]+):\d+: unhandled exception [0-9a-fA-F]{8} in child process ([0-9a-f]+)/)
+    {
+        my ($l_unit, $l_pid) = ($1, $2);
+        if ($units{$l_unit})
+        {
+          # This also replaces a test summary line.
+          $pids{$l_pid || 0} = 1;
+          $s_failures++;
+        }
+        add_test_line("failed", escapeHTML($line));
+        check_unit($l_unit, "child exception");
+        $failures++;
+    }
     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\./)




More information about the wine-cvs mailing list