Francois Gouget : 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.

Alexandre Julliard julliard at winehq.org
Fri Mar 14 12:15:18 CDT 2008


Module: tools
Branch: master
Commit: 9d09f0dfcd711b02e8e664546292a1dc474c1a70
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=9d09f0dfcd711b02e8e664546292a1dc474c1a70

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Mar 14 17:26:07 2008 +0100

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.

---

 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") {




More information about the wine-cvs mailing list