[tools] testbot/PatchUtils: Add support for .com program tests in _LoadWineFiles().

Francois Gouget fgouget at codeweavers.com
Tue Feb 2 08:17:23 CST 2021


_LoadWineFiles() must use the correct module name so that the lookups
succeed in _CreateTestInfo().

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

Wine does not have any .com test so far so this bug did not have any 
impact yet.

 testbot/lib/WineTestBot/PatchUtils.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/PatchUtils.pm b/testbot/lib/WineTestBot/PatchUtils.pm
index b2749c4e5..dda855d11 100644
--- a/testbot/lib/WineTestBot/PatchUtils.pm
+++ b/testbot/lib/WineTestBot/PatchUtils.pm
@@ -107,7 +107,7 @@ sub _LoadWineFiles()
         my ($Root, $Module, $File) = ($1, $2, $3);
         next if ($File eq "testlist.c");
         next if ($File !~ /\.(?:c|spec)$/);
-        $Module .= ".exe" if ($Root eq "programs");
+        $Module .= ".exe" if ($Root eq "programs" and $Module !~ /\./);
         $_TestList->{$Module}->{$File} = 1;
       }
     }
-- 
2.20.1



More information about the wine-devel mailing list