[tools] winetest/dissect: Match additional and new dll 'version' errors.

Francois Gouget fgouget at codeweavers.com
Mon Mar 15 13:28:31 CDT 2021


WineTest.exe now issues more specific errors when it cannot determine
a dll's version.
Also match the old version error messages that were ignored.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
It's probably best to apply this patch before the ones that change the 
messages issued by WineTest.exe so that test.winehq.org continues to 
produce the expected 'missing' lines in summary.txt files.
---
 winetest/dissect | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index 919b17ac3..dbbbe6b6d 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -426,8 +426,10 @@ while ($line = <IN> || "")
     last if ($line !~ /^\s+([^ =]+)=(.*?)\r?$/);
     my ($dll, $info) = ($1, $2);
     $dllinfo{$dll} = { version => $info };
-    if ($info eq "dll is missing" or $info eq "dll is a stub" or
-        $info =~ /^load error/)
+    if ($info =~ /^dll is (?:missing|native|a stub)/ or
+        $info =~ /^(?:load error|version error \d+|version not (?:found|present))$/ or
+        # For compatibility with old WineTest versions
+        $info =~ /^(?:failed|unknown|version not available)$/)
     {
         print SUM "- $dll - missing - - - - -\n";
     }
-- 
2.20.1



More information about the wine-devel mailing list