Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d385de71
Commit
d385de71
authored
Nov 03, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Simplify test_SendMessage_other_thread().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77f4c20a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
msg.c
dlls/user32/tests/msg.c
+1
-9
No files found.
dlls/user32/tests/msg.c
View file @
d385de71
...
@@ -16365,9 +16365,6 @@ static const struct message send_message_2[] = {
...
@@ -16365,9 +16365,6 @@ static const struct message send_message_2[] = {
};
};
static
const
struct
message
send_message_3
[]
=
{
static
const
struct
message
send_message_3
[]
=
{
{
WM_USER
+
3
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_USER
+
3
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
0
}
};
static
const
struct
message
send_message_4
[]
=
{
{
WM_USER
+
1
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_USER
+
1
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
0
}
{
0
}
};
};
...
@@ -16474,15 +16471,10 @@ static void test_SendMessage_other_thread(int thread_n)
...
@@ -16474,15 +16471,10 @@ static void test_SendMessage_other_thread(int thread_n)
ok
(
ret
==
MAKELONG
(
QS_SENDMESSAGE
,
QS_SENDMESSAGE
|
QS_POSTMESSAGE
),
"wrong status %08x
\n
"
,
ret
);
ok
(
ret
==
MAKELONG
(
QS_SENDMESSAGE
,
QS_SENDMESSAGE
|
QS_POSTMESSAGE
),
"wrong status %08x
\n
"
,
ret
);
trace
(
"main: call PeekMessage
\n
"
);
trace
(
"main: call PeekMessage
\n
"
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_NOREMOVE
),
"PeekMessage should not fail
\n
"
);
ok
(
msg
.
message
==
WM_USER
+
1
,
"expected WM_USER+1, got %04x
\n
"
,
msg
.
message
);
ok_sequence
(
send_message_3
,
"SendMessage from other thread 3"
,
thread_n
==
2
);
trace
(
"main: call PeekMessage
\n
"
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"PeekMessage should not fail
\n
"
);
ok
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"PeekMessage should not fail
\n
"
);
ok
(
msg
.
message
==
WM_USER
+
1
,
"expected WM_USER+1, got %04x
\n
"
,
msg
.
message
);
ok
(
msg
.
message
==
WM_USER
+
1
,
"expected WM_USER+1, got %04x
\n
"
,
msg
.
message
);
DispatchMessageA
(
&
msg
);
DispatchMessageA
(
&
msg
);
ok_sequence
(
send_message_
4
,
"SendMessage from other thread 4"
,
FALSE
);
ok_sequence
(
send_message_
3
,
"SendMessage from other thread 3"
,
thread_n
==
2
);
/* intentionally yield */
/* intentionally yield */
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
100
,
qs_all_input
);
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
100
,
qs_all_input
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment