Francois Gouget : testbot/TestAgent: Fix handling of connection timeouts.

Alexandre Julliard julliard at winehq.org
Tue Sep 17 11:55:07 CDT 2019


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Sep 17 12:34:47 2019 +0200

testbot/TestAgent: Fix handling of connection timeouts.

$@ does not just contain the die string we provided but also where die
was called.

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

---

 testbot/lib/WineTestBot/TestAgent.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index a4a2f49..d3d7137 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -938,7 +938,7 @@ sub _Connect($)
 
     if ($@)
     {
-      if ($@ eq "timeout")
+      if ($@ =~ /^timeout /)
       {
         $self->_SetError($FATAL, "Timed out in $Step while connecting to $self->{connection}");
       }




More information about the wine-cvs mailing list