[tools] winetest/dissect: Don't issue multiple errors in check_unit().

Francois Gouget fgouget at codeweavers.com
Mon Feb 1 05:58:55 CST 2021


Don't complain about misplaced lines after the first one has been
reported (or if the test has already been tagged as broken for some
other reason, e.g. missing start line).

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

This matches the TestBot behavior.

 winetest/dissect | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winetest/dissect b/winetest/dissect
index 27bcf1704..12a939d28 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -483,7 +483,7 @@ sub add_test_line($$)
 sub check_unit($$)
 {
     my ($l_unit, $l_type) = @_;
-    if (!$units{$l_unit})
+    if (!$units{$l_unit} and !$broken)
     {
         add_test_line("end", "Misplaced $l_type message\n");
         $extra_failures++;
-- 
2.20.1



More information about the wine-devel mailing list