WineHQ: avoid warnings on truncated files

Ferenc Wagner wferi at afavant.elte.hu
Mon May 3 08:16:31 CDT 2004


ChangeLog: Avoid warnings processing truncated reports.

Index: winetest/dissect
===================================================================
RCS file: /home/wine/tools/winetest/dissect,v
retrieving revision 1.9
diff -u -r1.9 dissect
--- winetest/dissect	29 Apr 2004 20:20:09 -0000	1.9
+++ winetest/dissect	3 May 2004 13:14:28 -0000
@@ -168,6 +168,7 @@
     }
 }
 if (defined $unit) {
+    $_="";
     $result = "failed - -";
     goto FINISH;
 }
Index: winetest/gather
===================================================================
RCS file: /home/wine/tools/winetest/gather,v
retrieving revision 1.7
diff -u -r1.7 gather
--- winetest/gather	29 Apr 2004 20:20:09 -0000	1.7
+++ winetest/gather	3 May 2004 13:14:28 -0000
@@ -202,8 +202,8 @@
         my $file = "$test->{dir}/$testname.txt";
         my ($count, $todo, $error) = @{$test->{results}->{$testname}};
         if ($count eq "failed") {
-            my $msg = $todo == 258?"timeout":
-                      $todo eq "-"?"crash":"failed";
+            my $msg = $todo eq "-"?"crash":
+                      $todo == 258?"timeout":"failed";
             my $fail = -r "$datadir/$build/$file"?"<a href=\"$file\">$msg</a>":$msg;
             print OUT "      <td class=\"note\">$fail</td>\n";
         } else {



More information about the wine-patches mailing list