Module: tools Branch: master Commit: a47a8ac5a1bdafee182e1e6814d5d30f9de4146e URL: https://source.winehq.org/git/tools.git/?a=commit;h=a47a8ac5a1bdafee182e1e68... Author: Francois Gouget <fgouget(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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}"); }