Francois Gouget : winetest/dissect: Provide more information when rejecting a report.

Alexandre Julliard julliard at winehq.org
Mon Jun 5 14:08:13 CDT 2017


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Sun Jun  4 00:40:17 2017 +0200

winetest/dissect: Provide more information when rejecting a report.

Log the test unit where the error occurred and the value of the limit
that was exceeded.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 winetest/dissect | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index 36ab635..99e50fb 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -334,7 +334,7 @@ while ($_ = <IN>) {
     elsif ($2 eq "skipped")
     {
         print SUM "- $module - skipped - - - - -\n";
-        mydie "too many dlls skipped by user request" if ++$user_skips > $maxuserskips;
+        mydie "too many dlls skipped by user request (>$maxuserskips at $module)" if ++$user_skips > $maxuserskips;
     }
 }
 
@@ -365,8 +365,8 @@ while (<IN>) {
         {
             $testbox->{data} .= "<div class=\"test result skipped\">Skipped by user request.</div>\n";
             print SUM "- $dll $unit skipped - - - $source $rev\n";
+            mydie "too many test units skipped by user request (>$maxuserskips at $dll:$unit)" if ++$user_skips > $maxuserskips;
             $dll = undef;
-            mydie "too many tests skipped by user request" if ++$user_skips > $maxuserskips;
         }
     } elsif (/^((?:[0-9a-f]+:)?$unit: (\d+) tests executed \((\d+) marked as todo, (\d+) failures?\), (\d+) skipped\.)\r?$/) {
         $lines++;
@@ -388,11 +388,11 @@ while (<IN>) {
             if ($1 == 258) { $reason = "test failed: timed out"; }
             elsif ($1 < 0) { $reason = "test failed: crash"; }
             $testbox->{data} .= "<div class=\"test end\">$reason</div>\n";
-            mydie "too many test failures" if ++$failed_tests > $maxfailedtests;
+            mydie "too many failed test units (>$maxfailedtests at $dll:$unit)" if ++$failed_tests > $maxfailedtests;
         } else {
             $result = "$total $todo $failed $skipped";
             if ($failed && ++$failed_tests > $maxfailedtests) {
-                mydie "too many test failures";
+                mydie "too many failed test units (>$maxfailedtests at $dll:$unit)";
             }
         }
         print SUM "- $dll $unit $result $source $rev\n";
@@ -422,9 +422,9 @@ while (<IN>) {
 if (defined $dll) {
     # Either winetest crashed or the report file was cut off
     if ($filesize == $maxfilesize) {
-        mydie "report reached file limit (runaway test?)";
+        mydie "report reached file size limit (>$maxfilesize bytes at $dll:$unit, runaway test?)";
     } else {
-        mydie "report truncated (winetest crash?)";
+        mydie "report truncated at $dll:$unit (winetest crash?)";
     }
 }
 close SUM or mydie "error writing to '$tmpdir/summary.txt': $!";




More information about the wine-cvs mailing list