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
5a6cda45
Commit
5a6cda45
authored
Feb 24, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Try harder to empty the pipe for completion notification.
parent
a5ec8bf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
pipe.c
dlls/kernel32/tests/pipe.c
+6
-9
No files found.
dlls/kernel32/tests/pipe.c
View file @
5a6cda45
...
...
@@ -2079,20 +2079,17 @@ static void test_readfileex_pending(void)
ok
(
completion_lpoverlapped
==
&
overlapped
,
"completion called with wrong overlapped pointer
\n
"
);
/* free up some space in the pipe */
ret
=
ReadFile
(
client
,
read_buf
,
sizeof
(
read_buf
),
&
num_bytes
,
NULL
);
ok
(
ret
==
TRUE
,
"ReadFile failed
\n
"
);
ok
(
completion_called
==
0
,
"completion routine called during ReadFile
\n
"
);
wait
=
WaitForSingleObjectEx
(
event
,
0
,
TRUE
);
ok
(
wait
==
WAIT_IO_COMPLETION
||
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %x
\n
"
,
wait
);
if
(
wait
==
WAIT_TIMEOUT
)
for
(
i
=
0
;
i
<
256
;
i
++
)
{
ret
=
ReadFile
(
client
,
read_buf
,
sizeof
(
read_buf
),
&
num_bytes
,
NULL
);
ok
(
ret
==
TRUE
,
"ReadFile failed
\n
"
);
ok
(
completion_called
==
0
,
"completion routine called during ReadFile
\n
"
);
wait
=
WaitForSingleObjectEx
(
event
,
0
,
TRUE
);
ok
(
wait
==
WAIT_IO_COMPLETION
||
wait
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %x
\n
"
,
wait
);
ok
(
wait
==
WAIT_IO_COMPLETION
||
wait
==
WAIT_OBJECT_0
||
wait
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %x
\n
"
,
wait
);
if
(
wait
!=
WAIT_TIMEOUT
)
break
;
}
ok
(
completion_called
==
1
,
"completion routine not called
\n
"
);
...
...
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