Francois Gouget : testbot/PatchUtils: Add support for .com program tests in _LoadWineFiles().

Alexandre Julliard julliard at winehq.org
Tue Feb 2 15:47:51 CST 2021


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Feb  2 15:17:23 2021 +0100

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

_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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 b2749c4..dda855d 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;
       }
     }




More information about the wine-cvs mailing list