WineHQ:winetest: don't abort if version file not found

Ferenc Wagner wferi at afavant.elte.hu
Tue Jan 11 10:29:02 CST 2005


ChangeLog: * Don't abort if the version file isn't present.

Feri.

Index: winetest/gather
===================================================================
RCS file: /home/wine/tools/winetest/gather,v
retrieving revision 1.12
diff -u -r1.12 gather
--- winetest/gather	11 Jan 2005 15:59:33 -0000	1.12
+++ winetest/gather	11 Jan 2005 16:25:57 -0000
@@ -117,19 +117,17 @@
     }
     close TEST;
 
-    (my $verfile = $file) =~ s|summary.txt$|version.txt|;
-    if (!open VER, "<$verfile") {
-        print "can't open $verfile: $!\n";
-        next;
-    }
     $testref->{visible} = 0;
-    while (<VER>) {
-        if (/^bRunningOnVisibleDesktop=(.*)$/ && $1 ne "0") {
-            $testref->{visible} = 1;
-            last;
+    (my $verfile = $file) =~ s|summary.txt$|version.txt|;
+    if (open VER, "<$verfile") {
+        while (<VER>) {
+            if (/^bRunningOnVisibleDesktop=(.*)$/ && $1 ne "0") {
+                $testref->{visible} = 1;
+                last;
+            }
         }
+        close VER;
     }
-    close VER;
     push @{$group->{tests}}, $testref;
 }
 



More information about the wine-patches mailing list