Francois Gouget : testbot/TestAgent: We don' t need the server version for SetTime().

Alexandre Julliard julliard at winehq.org
Wed Mar 12 13:33:36 CDT 2014


Module: tools
Branch: master
Commit: 8fd1a3be1d792132a397144b03b7b96472afc7de
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=8fd1a3be1d792132a397144b03b7b96472afc7de

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Mar 12 14:25:58 2014 +0100

testbot/TestAgent: We don't need the server version for SetTime().

Just let the server return an error if it does not know about this RPC.

---

 testbot/lib/WineTestBot/TestAgent.pm |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index c138663..f810f2b 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -2,7 +2,7 @@
 # to run scripts.
 #
 # Copyright 2009 Ge van Geldorp
-# Copyright 2012 Francois Gouget
+# Copyright 2012-2014 Francois Gouget
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -1206,9 +1206,6 @@ sub SetTime($)
   my ($self) = @_;
   debug("SetTime\n");
 
-  # Make sure we have the server version
-  return undef if (!$self->{agentversion} and !$self->_Connect());
-
   # Send the command
   if (!$self->_StartRPC($RPC_SETTIME) or
       !$self->_SendListSize(2) or




More information about the wine-cvs mailing list