[Tools 09/12] winetest: If the test exit code is negative, then it is most likely an exception code, which means the test crashed. Don't assume the 'todo' field is numeric.

Francois Gouget fgouget at free.fr
Fri Mar 14 11:26:07 CDT 2008


---
 winetest/gather |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/winetest/gather b/winetest/gather
index 415b619..f4098ea 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -272,9 +272,11 @@ sub singletest($$$) {
     my $file = "$test->{dir}/$testname.txt";
     my ($count, $todo, $error, $skipped) = @{$test->{results}->{$testname}};
     if ($count eq "failed") {
-        my $msg = $todo eq "crash"?"crash":
+        my $msg = $todo eq "crash"?"crashed":
+                  $todo eq "-2"?"failed":
+                  $todo =~ /^-/?"crashed":
                   $todo eq "filelimit"?"file limit":
-                  $todo == 258?"timeout":"failed";
+                  $todo eq "258"?"timeout":"failed";
         my $fail = -r "$datadir/$build/$file"?"<a href=\"$file\">$msg</a>":$msg;
         print OUT "      <td class=\"note\">$fail</td>\n";
     } elsif ($count eq "dll missing") {
-- 
1.5.4.1




More information about the wine-patches mailing list