[tools] winetest/dissect: Don't close nonexistent test units.

Francois Gouget fgouget at codeweavers.com
Thu Mar 4 06:55:24 CST 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/dissect | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winetest/dissect b/winetest/dissect
index fc83726bf..7f4f3271d 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -770,7 +770,7 @@ while ($line = <IN>) {
             # And close the current test unit taking into account
             # it may have been polluted by the new one.
             $broken = 1;
-            close_test_unit(0);
+            close_test_unit(0) if ($dll ne "");
 
             # Then switch to the new test unit, not for the past lines, but for
             # those before the next 'start' line. This 'new' test unit may have
-- 
2.20.1




More information about the wine-devel mailing list