Francois Gouget : winetest/gather: Fix test_links() when the source file is unknown.

Alexandre Julliard julliard at winehq.org
Fri Feb 19 16:42:31 CST 2021


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Feb 19 14:41:01 2021 +0100

winetest/gather: Fix test_links() when the source file is unknown.

This can happen if a given test unit (or just its source field) is
missing from a set of report summary files (e.g. from ReportTest).

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

---

 winetest/gather | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winetest/gather b/winetest/gather
index 31ba8fa..8948697 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -722,6 +722,8 @@ sub test_links($$)
 {
     my ($testname, $group) = @_;
     my $source = $alltests{$testname};
+    return "<td></td>" if (!defined $source);
+
     return "<td class=\"links\"><a href=\"$gitweb/?a=history;f=$source;hb=$build\" title=\"$source change history\">history</a>" .
            " | <a href=\"$gitweb/?a=blob;f=$source;hb=$build\" title=\"$source source code\">source</a>" .
            (defined($group) ? " | <a href=\"index.html#$testname\" title=\"summary of $testname results across platforms\">summary</a>" : "") .




More information about the wine-cvs mailing list