[tools] winetest/dissect: Add support for winedbg's unhandled exception lines.
Alexandre Julliard
julliard at winehq.org
Thu Feb 11 08:17:30 CST 2021
Francois Gouget <fgouget at codeweavers.com> writes:
> 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));
> + }
Note that this is now showing a failed test in kernel32:debugger, but
that exception is expected and handled by the test.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list