Author: tfaber
Date: Thu Jun 18 13:59:51 2015
New Revision: 68188
URL:
http://svn.reactos.org/svn/reactos?rev=68188&view=rev
Log:
[USER32_APITEST]
- Fail if we get too many WM_HOTKEY messages
CORE-9728
Modified:
trunk/rostests/apitests/user32/RegisterHotKey.c
Modified: trunk/rostests/apitests/user32/RegisterHotKey.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/RegisterH…
==============================================================================
--- trunk/rostests/apitests/user32/RegisterHotKey.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/RegisterHotKey.c [iso-8859-1] Thu Jun 18 13:59:51 2015
@@ -23,14 +23,14 @@
#define expect_hotkey(id, mod, vk) do
\
{
\
MSG msg;
\
- BOOL got_hotkey = FALSE;
\
+ int hotkey_count = 0;
\
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
\
{
\
msg_hotkey(&msg, id, mod, vk);
\
- if (msg.message == WM_HOTKEY) got_hotkey = TRUE;
\
+ if (msg.message == WM_HOTKEY) hotkey_count++;
\
DispatchMessageW(&msg);
\
}
\
- ok(got_hotkey, "Did not receive expected WM_HOTKEY message\n");
\
+ ok(hotkey_count == 1, "Received %d WM_HOTKEY messages, expected 1\n");
\
} while (0)
#define msg_no_hotkey(msg) do
\
{
\