[tools] testbot: Also identify Failure test units on unhandled exception lines.
Francois Gouget
fgouget at codeweavers.com
Mon Jul 4 11:10:09 CDT 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
This only simplifies the cases where the test framework caught the
unhandled exception. The other cases have no information on the source
test unit.
---
testbot/lib/WineTestBot/LogUtils.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 651c1d0a47..afbd9432f9 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -1409,7 +1409,9 @@ sub MatchLogFailures($$)
foreach my $ErrIndex (0..$#{$Group->{Errors}})
{
my $Line = $Group->{Errors}->[$ErrIndex];
- my $TestUnit = $Line =~ /^([_a-z0-9]+)\.c:\d+:/ ? $1 : "";
+ my $TestUnit = $Line =~ /^([_a-z0-9]+)\.c:\d+:[0-9.]* / ? $1 :
+ $Line =~ /^[0-9a-f]+:([_a-z0-9]+):[0-9.]* unhandled exception / ? $1 :
+ "";
my $UnitFailures = $FailureTree{$GroupName}->{$TestUnit};
next if (!$UnitFailures);
--
2.30.2
More information about the wine-devel
mailing list