Francois Gouget : winetest/dissect: Simplify a couple of $units_re initializations.

Alexandre Julliard julliard at winehq.org
Fri Nov 15 10:41:28 CST 2019


Module: tools
Branch: master
Commit: 768ee9ad04311a72aa10744e02387d2f4f60929f
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=768ee9ad04311a72aa10744e02387d2f4f60929f

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Nov 15 12:50:47 2019 +0100

winetest/dissect: Simplify a couple of $units_re initializations.

There is no need for a join() when there is no subtest, yet.

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

---

 winetest/dissect | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index 1bbd78e..30f11e1 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -603,7 +603,7 @@ while ($line = <IN>) {
 
         ($dll, $unit, $source, $rev) = ($l_dll, $l_unit, $l_source, $l_rev);
         %units = ($unit => 1);
-        $units_re = join("|", keys %units);
+        $units_re = $unit;
 
         $testbox = create_test_unit_box();
         if ($l_type eq "skipped")
@@ -728,7 +728,7 @@ while ($line = <IN>) {
             # and that its results may be inconsistent.
             ($dll, $unit, $source, $rev) = ($l_dll, $l_unit, "-", "-");
             %units = ($unit => 1);
-            $units_re = join("|", keys %units);
+            $units_re = $unit;
 
             $testbox = create_test_unit_box();
             add_test_line("end", "The $l_dll:$l_unit start line is missing (or it is garbled)");




More information about the wine-cvs mailing list