Module: tools
Branch: master
Commit: 0160d815ceca3746d5464741eefbd164543bb7fd
URL: http://source.winehq.org/git/tools.git/?a=commit;h=0160d815ceca3746d5464741…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue Mar 26 10:55:12 2013 +0100
testbot: When restarting a task, reset all the fields related to its previous run.
Some fields like the start and stop time would still be displayed and
could be confusing. The 'TestFailures' field could even not get reset
if the task then is canceled or fails to run and thus report incorrect
results.
---
testbot/lib/WineTestBot/Jobs.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index cd6c427..c73dea1 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -231,6 +231,10 @@ sub Restart
system("rm", "-rf", "$JobDir/" . $Step->No . "/" . $Task->No);
}
$Task->Status("queued");
+ $Task->ChildPid(undef);
+ $Task->Started(undef);
+ $Task->Ended(undef);
+ $Task->TestFailures(undef);
}
# Subsequent steps only contain files generated by the previous steps
system("rm", "-rf", "$JobDir/" . $Step->No) if (!$FirstStep);
Module: tools
Branch: master
Commit: e7ea9b8e63644471762d7cf4fda4e7018f0dbe02
URL: http://source.winehq.org/git/tools.git/?a=commit;h=e7ea9b8e63644471762d7cf4…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue Mar 26 10:54:31 2013 +0100
testbot: Document a harmless race in the task startup and its consequences.
---
testbot/lib/WineTestBot/Tasks.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/testbot/lib/WineTestBot/Tasks.pm b/testbot/lib/WineTestBot/Tasks.pm
index 56028d8..8ca9da0 100644
--- a/testbot/lib/WineTestBot/Tasks.pm
+++ b/testbot/lib/WineTestBot/Tasks.pm
@@ -129,6 +129,10 @@ sub Run
exit(1);
}
+ # Note that if the child process completes quickly (typically due to some
+ # error), it may set ChildPid to undef before we get here. So we may end up
+ # with non-running tasks for which ChildPid is set. That's ok because
+ # ChildPid should be ignored anyway if Status is not 'running'.
$self->ChildPid($Pid);
$self->Started(time);
my ($ErrProperty, $ErrMessage) = $self->Save();
@@ -206,6 +210,7 @@ BEGIN
CreateItemrefPropertyDescriptor("VM", "VM", !1, 1, \&CreateVMs, ["VMName"]),
CreateBasicPropertyDescriptor("Timeout", "Timeout", !1, 1, "N", 4),
CreateBasicPropertyDescriptor("CmdLineArg", "Command line args", !1, !1, "A", 256),
+ # Note: ChildPid is only valid when Status == 'running'.
CreateBasicPropertyDescriptor("ChildPid", "Child process id", !1, !1, "N", 5),
CreateBasicPropertyDescriptor("Started", "Execution started", !1, !1, "DT", 19),
CreateBasicPropertyDescriptor("Ended", "Execution ended", !1, !1, "DT", 19),
Module: wine
Branch: master
Commit: bb3097f01e532583c8c78c9daf64ff29f8eb255c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb3097f01e532583c8c78c9da…
Author: Hans Leidekker <hans(a)codeweavers.com>
Date: Mon Mar 25 13:26:37 2013 +0100
winhttp: Add a read-ahead buffer to allow WinHttpQueryDataAvailable to return the right values in chunked mode.
This is a port of wininet commit 3d02c42b39c7346a97c41974418a6d01a29f9b81.
---
dlls/winhttp/request.c | 381 +++++++++++++++++++++++++---------------
dlls/winhttp/tests/winhttp.c | 78 ++++++++
dlls/winhttp/winhttp_private.h | 5 +
3 files changed, 318 insertions(+), 146 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=bb3097f01e532583c8c78…