WineHQ: winetest: detect winetest crashes
Ferenc Wagner
wferi at afavant.elte.hu
Tue Apr 27 18:05:27 CDT 2004
ChangeLog: Signal a crash on truncated reports.
Index: winetest/dissect
===================================================================
RCS file: /home/wine/tools/winetest/dissect,v
retrieving revision 1.8
diff -u -r1.8 dissect
--- winetest/dissect 23 Apr 2004 14:47:47 -0000 1.8
+++ winetest/dissect 27 Apr 2004 23:03:12 -0000
@@ -167,9 +167,12 @@
$fragment->add($_);
}
}
+if (defined $unit) {
+ $result = "failed - -";
+ goto FINISH;
+}
close SUM;
close IN;
-!defined $unit or mydie "end of input processing $unit:$test\n";
my $builddir = "$datadir/$testbuild";
foreach ($datadir, $builddir) {
Index: winetest/gather
===================================================================
RCS file: /home/wine/tools/winetest/gather,v
retrieving revision 1.6
diff -u -r1.6 gather
--- winetest/gather 23 Apr 2004 14:46:21 -0000 1.6
+++ winetest/gather 27 Apr 2004 23:03:12 -0000
@@ -202,7 +202,8 @@
my $file = "$test->{dir}/$testname.txt";
my ($count, $todo, $error) = @{$test->{results}->{$testname}};
if ($count eq "failed") {
- my $msg = $todo == 258?"timeout":"failed";
+ my $msg = $todo == 258?"timeout":
+ $todo eq "-"?"crash":"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