Francois Gouget : testbot/LogUtils: Make the compilation error detection stricter.

Alexandre Julliard julliard at winehq.org
Fri Jun 17 14:44:39 CDT 2022


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Jun 17 16:49:44 2022 +0200

testbot/LogUtils: Make the compilation error detection stricter.

This avoids some false positives in the d3d WINE_ERR() messages.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/LogUtils.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index e25ea3ae..720482f3 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -102,7 +102,10 @@ sub GetLogLineCategory($)
       $Line =~ /^error: patch failed:/ or
       $Line =~ /^error: corrupt patch / or
       # Build errors
-      $Line =~ /: error: / or
+      # Note that just ': error:' leads to false positives. So assume the
+      # error location (source filename + line number) contains no space.
+      $Line =~ /^[^ ]+: fatal error: / or # nonexistent include file
+      $Line =~ /^[^ ]+: error: / or
       $Line =~ /: undefined reference to `/ or
       $Line =~ /^make: [*]{3} No rule to make target / or
       $Line =~ /^Makefile:\d+: recipe for target .* failed$/ or




More information about the wine-cvs mailing list