Module: wine
Branch: master
Commit: a99c1ee76401ac25142b0eb1a9590a7391c4f1e1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a99c1ee76401ac25142b0eb1…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru>
Date: Fri Feb 11 17:24:31 2022 +0300
comctl32/tests: Print id value as decimal.
All the notification codes (printed as an id) have negative base value
(SBN_, UDN_, HDN_, BCN_, TBN_, TTN_, RBN_, TRBN_, PGN_, TVN_, LVN_, TCN_,
CBEN_, IPN_, MCN_, DTN_), and printing them as decimal helps to quickly
identify the corresponding notification value in cases when an id in
the message sequence doesn't match. Custom ids in the message sequences
have small numbers (0, 1, 2, ...), so they also get printed correctly.
Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/comctl32/tests/msg.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/msg.h b/dlls/comctl32/tests/msg.h
index 7337c724a5c..8ba2efddb0a 100644
--- a/dlls/comctl32/tests/msg.h
+++ b/dlls/comctl32/tests/msg.h
@@ -261,14 +261,14 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index,
failcount++;
dump++;
ok_(file, line) (FALSE,
- "%s: in msg 0x%04x expecting id 0x%x got 0x%x\n",
+ "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id);
}
}
else
{
ok_(file, line) (expected->id == actual->id,
- "%s: in msg 0x%04x expecting id 0x%x got 0x%x\n",
+ "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id);
if (expected->id != actual->id) dump++;
}
Module: tools
Branch: master
Commit: bc0a6f5c1db047a18b35eec53fdd854624bd5951
URL: https://source.winehq.org/git/tools.git/?a=commit;h=bc0a6f5c1db047a18b35eec…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 21 18:33:12 2022 +0100
testbot/LibvirtTool: Reduce the Windows boot delay on live snapshots.
Reducing the boot delay helps ensure there will be enough time for
Windows to complete the reboot before the task times out, which may
allow the TestBot to retrieve the report/logs/diagnostic information.
Note that on 64-bit Windows this requires a 64-bit TestAgentd in order
to be able to run bcdedit.exe.
Also this only works on recent versions of Windows which is okay since a
failure to change the boot delay will not prevent the tests from
running.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/LibvirtTool.pl | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index 00d1ce4..ef662cd 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -651,6 +651,15 @@ sub CreateSnapshot($$$$)
{
FatalError("Could not reset the $VMKey Windows desktop background color\n");
}
+
+ # Reduce the boot delay. The way to do this depends on the Windows
+ # version so this only works on recent ones :-(
+ my $PTA = GetPrivilegedTA($TA);
+ if (RunAndWait($PTA, ["bcdedit.exe", "/set", "{bootmgr}", "timeout", "1"]))
+ {
+ Error("Could not change the Windows boot delay on $VMKey\n");
+ }
+
$Reboot = 1;
}
Module: tools
Branch: master
Commit: e88b169dd2b1ccb939b12fd09af3e90beed38a80
URL: https://source.winehq.org/git/tools.git/?a=commit;h=e88b169dd2b1ccb939b12fd…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 21 16:36:40 2022 +0100
testbot/LibvirtTool: Limit the administrator notifications for offline VMs.
Tweak the notification to reflect that.
This also means the LibvirtTool monitor should not announce that the VM
is working again since it may very well still be broken, for instance if
the required snapshot is missing. Instead announce the VM works again
only when a revert was successful.
So now the administrator gets:
* $MaxVMErrors-1 messages that the VM is offline
* 1 message that the VM needs maintenance
* 1 message when the VM works again
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/LibvirtTool.pl | 36 +++++++++++++++++++++++-------------
1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index a025085..c027d6b 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -196,19 +196,22 @@ sub FatalError($)
{
LogMsg "Could not put the $VMKey VM offline: $SaveErrMessage ($ErrProperty)\n";
}
- elsif ($Errors >= $MaxVMErrors)
+ elsif ($Errors < $MaxVMErrors)
{
- NotifyAdministrator("The $VMKey VM needs maintenance",
- "Got $Errors consecutive errors working on the $VMKey VM:\n".
+ NotifyAdministrator("Putting the $VMKey VM offline ($Errors)",
+ "Could not perform the $Action operation on the $VMKey VM:\n".
"\n$ErrMessage\n".
- "It probably needs fixing to get back online.");
+ "Got $Errors consecutive errors.\n".
+ "The VM has been put offline and the TestBot will try to regain access to it.");
}
- else
+ elsif ($Errors == $MaxVMErrors)
{
- NotifyAdministrator("Putting the $VMKey VM offline",
- "Could not perform the $Action operation on the $VMKey VM:\n".
+ NotifyAdministrator("The $VMKey VM needs maintenance",
+ "Got $Errors consecutive errors working on the $VMKey VM:\n".
"\n$ErrMessage\n".
- "The VM has been put offline and the TestBot will try to regain access to it.");
+ "It probably needs fixing to get back online.\n".
+ "* Spacing out attempts to revive it.\n".
+ "* No further error notification will be sent until it starts working again.\n");
}
exit 1;
}
@@ -405,10 +408,11 @@ sub Monitor()
}
if ($IsReady)
{
+ # The VM may well still be broken, for instance if the required snapshot
+ # does not exist. But only revert can tell. For this reason, let revert
+ # announce when the VM works again.
return 1 if (ChangeStatus("offline", "off", "done"));
- NotifyAdministrator("The $VMKey VM is working again",
- "The $VMKey VM started working again after ".
- PrettyElapsed($Start) .".");
+ LogMsg("Switching $VMKey from offline to off after ". PrettyElapsed($Start) .".");
return 0;
}
@@ -821,9 +825,15 @@ sub Revert()
Debug(Elapsed($Start), " Sleeping ${Sleep}s\n");
LogMsg "Letting $VMKey settle down for ${Sleep}s\n";
sleep($Sleep);
-
CheckBootCount($TA);
- return ChangeStatus($CurrentStatus, "idle", "done");
+
+ return 1 if (ChangeStatus($CurrentStatus, "idle", "done"));
+ if ($VM->Errors)
+ {
+ NotifyAdministrator("The $VMKey VM is working again",
+ "After ". $VM->Errors ." consecutive errors $VMKey was successfully reverted to $Config->{snapshot} in ". PrettyElapsed($Start) ." and is now idle.");
+ }
+ return 0;
}
Module: wine
Branch: master
Commit: 9be9c32781f8c548c0d24e160390aa77da8b303f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9be9c32781f8c548c0d24e16…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Fri Feb 18 15:59:32 2022 +0100
dbghelp: Fix the spelling and tweak the wording of a comment.
Signed-off-by: Francois Gouget <fgouget(a)free.fr>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/dbghelp/symbol.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index 49172701405..64f376b42f0 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -66,10 +66,11 @@ int __cdecl symt_cmp_addr(const void* p1, const void* p2)
/* dbghelp exposes the internal symbols/types with DWORD indexes.
* - custom symbols are always stored with index starting at BASE_CUSTOM_SYMT
- * - for all the others (non custom) symbols:
- * + on 32bit machine, index is set to the actual adress of symt
- * + on 64bit machine, we have a dedicated array to store symt exposed to caller
- * index is the index in this array of the symbol
+ * - for all the other (non custom) symbols:
+ * + on 32-bit machines, index is set to the actual address of symt
+ * + on 64-bit machines, the symt address is stored in a dedicated array
+ * which is exposed to the caller and index is the index of the symbol in
+ * this array
*/
DWORD symt_ptr2index(struct module* module, const struct symt* sym)
{