Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a5438963
Commit
a5438963
authored
Sep 11, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix the async I/O test on Vista.
parent
c9f84aa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
file.c
dlls/ntdll/tests/file.c
+25
-9
No files found.
dlls/ntdll/tests/file.c
View file @
a5438963
...
...
@@ -377,7 +377,9 @@ static void read_file_test(void)
offset
.
QuadPart
=
0
;
ResetEvent
(
event
);
status
=
pNtReadFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
buffer
,
strlen
(
text
)
+
10
,
&
offset
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_PENDING
,
/* vista */
"wrong status %x
\n
"
,
status
);
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
"
);
...
...
@@ -391,13 +393,25 @@ static void read_file_test(void)
iosb
.
Information
=
0xdeadbeef
;
offset
.
QuadPart
=
strlen
(
text
)
+
2
;
status
=
pNtReadFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
buffer
,
2
,
&
offset
,
NULL
);
ok
(
status
==
STATUS_END_OF_FILE
,
"wrong status %x
\n
"
,
status
);
ok
(
U
(
iosb
).
Status
==
0xdeadbabe
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
0xdeadbeef
,
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
!
is_signaled
(
event
),
"event is signaled
\n
"
);
ok
(
!
apc_count
,
"apc was called
\n
"
);
SleepEx
(
1
,
TRUE
);
/* alertable sleep */
ok
(
!
apc_count
,
"apc was called
\n
"
);
if
(
status
==
STATUS_PENDING
)
/* vista */
{
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
"
);
ok
(
!
apc_count
,
"apc was called
\n
"
);
SleepEx
(
1
,
TRUE
);
/* alertable sleep */
ok
(
apc_count
==
1
,
"apc was not called
\n
"
);
}
else
{
ok
(
status
==
STATUS_END_OF_FILE
,
"wrong status %x
\n
"
,
status
);
ok
(
U
(
iosb
).
Status
==
0xdeadbabe
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
0xdeadbeef
,
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
!
is_signaled
(
event
),
"event is signaled
\n
"
);
ok
(
!
apc_count
,
"apc was called
\n
"
);
SleepEx
(
1
,
TRUE
);
/* alertable sleep */
ok
(
!
apc_count
,
"apc was called
\n
"
);
}
CloseHandle
(
handle
);
/* now a non-overlapped file */
...
...
@@ -407,7 +421,9 @@ static void read_file_test(void)
iosb
.
Information
=
0xdeadbeef
;
offset
.
QuadPart
=
0
;
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_END_OF_FILE
,
"wrong status %x
\n
"
,
status
);
ok
(
status
==
STATUS_END_OF_FILE
||
status
==
STATUS_PENDING
,
/* vista */
"wrong status %x
\n
"
,
status
);
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
"
);
...
...
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