Module: tools Branch: master Commit: fbb1d9fcea0dff71e4846dc8fb0e91b9021e8eec URL: https://gitlab.winehq.org/winehq/tools/-/commit/fbb1d9fcea0dff71e4846dc8fb0e...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Nov 18 18:52:39 2022 +0100
testbot/TestAgent: Don't override a 0 second SetTime() leeway.
It is typically used to detect whether the TestAgent server has high enough privileges.
---
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 2d600210..2842cd95 100644 --- a/testbot/lib/WineTestBot/TestAgent.pm +++ b/testbot/lib/WineTestBot/TestAgent.pm @@ -1403,7 +1403,7 @@ sub Rm($@) sub SetTime($;$) { my ($self, $Leeway) = @_; - $Leeway ||= 30; + $Leeway = 30 if (!defined $Leeway); debug("SetTime $Leeway\n");
# Send the command