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
41359002
Commit
41359002
authored
Sep 02, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add a test to show that WaitCommEvent should fail if there is a pending wait.
parent
663dbd9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
comm.c
dlls/kernel32/tests/comm.c
+11
-1
No files found.
dlls/kernel32/tests/comm.c
View file @
41359002
...
...
@@ -783,7 +783,7 @@ static void test_waittxempty(void)
DWORD
before
,
after
,
bytes
,
timediff
,
evtmask
,
errors
,
i
;
BOOL
res
;
DWORD
baud
=
SLOWBAUD
;
OVERLAPPED
ovl_write
,
ovl_wait
;
OVERLAPPED
ovl_write
,
ovl_wait
,
ovl_wait2
;
COMSTAT
stat
;
hcom
=
test_OpenComm
(
TRUE
);
...
...
@@ -956,6 +956,16 @@ todo_wine
{
ok
(
!
evtmask
,
"WaitCommEvent: expected 0, got %#x
\n
"
,
evtmask
);
S
(
U
(
ovl_wait2
)).
Offset
=
0
;
S
(
U
(
ovl_wait2
)).
OffsetHigh
=
0
;
ovl_wait2
.
hEvent
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
SetLastError
(
0xdeadbeef
);
res
=
WaitCommEvent
(
hcom
,
&
evtmask
,
&
ovl_wait2
);
ok
(
!
res
,
"WaitCommEvent should fail if there is a pending wait
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
CloseHandle
(
ovl_wait2
.
hEvent
);
/* unblock pending wait */
trace
(
"recovering after WAIT_TIMEOUT...
\n
"
);
/* FIXME: Wine fails to unblock with new mask being equal to the old one */
...
...
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