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
bfb98ace
Commit
bfb98ace
authored
Aug 26, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Wait for async I/O to complete when the result is STATUS_PENDING.
parent
325bfc72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
file.c
dlls/ntdll/tests/file.c
+5
-1
No files found.
dlls/ntdll/tests/file.c
View file @
bfb98ace
...
...
@@ -715,6 +715,7 @@ static void read_file_test(void)
ResetEvent
(
event
);
status
=
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_PENDING
,
"wrong status %x
\n
"
,
status
);
if
(
status
==
STATUS_PENDING
)
WaitForSingleObject
(
event
,
1000
);
ok
(
U
(
iosb
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
strlen
(
text
),
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
is_signaled
(
event
),
"event is signaled
\n
"
);
...
...
@@ -731,6 +732,7 @@ static void read_file_test(void)
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_PENDING
,
/* vista */
"wrong status %x
\n
"
,
status
);
if
(
status
==
STATUS_PENDING
)
WaitForSingleObject
(
event
,
1000
);
ok
(
U
(
iosb
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
strlen
(
text
),
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
is_signaled
(
event
),
"event is signaled
\n
"
);
...
...
@@ -746,6 +748,7 @@ static void read_file_test(void)
status
=
pNtReadFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
buffer
,
2
,
&
offset
,
NULL
);
if
(
status
==
STATUS_PENDING
)
/* vista */
{
WaitForSingleObject
(
event
,
1000
);
ok
(
U
(
iosb
).
Status
==
STATUS_END_OF_FILE
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
0
,
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
is_signaled
(
event
),
"event is signaled
\n
"
);
...
...
@@ -776,6 +779,7 @@ static void read_file_test(void)
status
==
STATUS_SUCCESS
||
status
==
STATUS_PENDING
,
/* vista */
"wrong status %x
\n
"
,
status
);
if
(
status
==
STATUS_PENDING
)
WaitForSingleObject
(
event
,
1000
);
ok
(
U
(
iosb
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
strlen
(
text
),
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
is_signaled
(
event
),
"event is signaled
\n
"
);
...
...
@@ -846,7 +850,7 @@ static void append_file_test(void)
if
(
status
==
STATUS_PENDING
)
{
WaitForSingleObject
(
handle
,
INFINITE
);
WaitForSingleObject
(
handle
,
1000
);
status
=
U
(
iosb
).
Status
;
}
written
=
iosb
.
Information
;
...
...
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