tools/winetest gather

Jeremy Newman jnewman at wine.codeweavers.com
Tue Aug 7 16:54:21 CDT 2007


ChangeSet ID:	31319
CVSROOT:	/opt/cvs-commit
Module name:	tools
Changes by:	jnewman at winehq.org	2007/08/07 16:54:21

Modified files:
	winetest       : gather 

Log message:
	Paul Vriens <paul.vriens.wine at gmail.com>
	Show crashed winetest in the single/group results

Patch: http://cvs.winehq.org/patch.py?id=31319

Old revision  New revision  Changes     Path
 1.23          1.24          +14 -0      tools/winetest/gather

Index: tools/winetest/gather
diff -u -p tools/winetest/gather:1.23 tools/winetest/gather:1.24
--- tools/winetest/gather:1.23	7 Aug 2007 21:54:21 -0000
+++ tools/winetest/gather	7 Aug 2007 21:54:21 -0000
@@ -112,6 +112,8 @@ foreach my $file (glob "$datadir/$build/
             } else {
                 $group->{extrema}->{$testname} = [$error, $error];
             }
+        } elsif ($todo eq "-") {
+            $testref->{crash} = $testname;
         }
         my $prevdigest = \$group->{digests}->{$testname};
         $$prevdigest = ($count eq "failed" || $error || $skipped ||
@@ -132,9 +134,14 @@ foreach my $group (@groups) {
                 # Make sure missing tests are shown in the group results
                 $group->{digests}->{$testname} = "differ";
                 my ($dll, $subtest) = split(/:/, $testname);
+                my $crash = $test->{crash};
                 if (exists $test->{dllmissing}->{$dll}) {
                     # Mark this test as missing because of a missing dll
                     $test->{results}->{$testname} = ["dll missing", "-", "-", "-"]; 
+                } elsif (defined $crash && $testname gt $crash) {
+                    # Mark this test as missing because of what looks like a winetest crash.
+                    # The cause of that is most likely a partial report file.
+                    $test->{results}->{$testname} = ["winetest crash", "-", "-", "-"];
                 } else {
                     # Mark this test as missing for an unknown reason
                     $test->{results}->{$testname} = ["test missing", "-", "-", "-"];
@@ -239,6 +246,13 @@ sub singletest {
         onMouseOver="No tests run as $dll.dll is not present on this system"
         >0</a></td>
 EOF
+    } elsif ($count eq "winetest crash") {
+        print OUT <<"EOF";
+      <td class="skip_fail"><a
+        title="Test did not run as winetest crashed"
+        onMouseOver="Test did not run as winetest crashed";
+        >.</a></td>
+EOF
     } elsif ($count eq "test missing") {
         print OUT <<"EOF";
       <td class="skip_fail"><a



More information about the wine-cvs mailing list