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
49e31d29
Commit
49e31d29
authored
Aug 23, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add some tests for FILE_USE_FILE_POINTER_POSITION.
parent
37d67eb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
file.c
dlls/ntdll/tests/file.c
+22
-3
No files found.
dlls/ntdll/tests/file.c
View file @
49e31d29
...
...
@@ -2001,7 +2001,8 @@ static void test_read_write(void)
iob
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
status
=
pNtWriteFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
"DCBA"
,
4
,
NULL
,
NULL
);
offset
.
QuadPart
=
(
LONGLONG
)
-
2
/* FILE_USE_FILE_POINTER_POSITION */
;
status
=
pNtWriteFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
"DCBA"
,
4
,
&
offset
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"NtWriteFile error %#x
\n
"
,
status
);
ok
(
iob
.
Status
==
STATUS_SUCCESS
,
"expected STATUS_SUCCESS, got %#x
\n
"
,
iob
.
Status
);
ok
(
iob
.
Information
==
4
,
"expected 4, got %lu
\n
"
,
iob
.
Information
);
...
...
@@ -2035,7 +2036,7 @@ todo_wine
iob
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
sizeof
(
contents
)
;
offset
.
QuadPart
=
(
LONGLONG
)
-
2
/* FILE_USE_FILE_POINTER_POSITION */
;
status
=
pNtReadFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
sizeof
(
buf
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_END_OF_FILE
,
"expected STATUS_END_OF_FILE, got %#x
\n
"
,
status
);
todo_wine
...
...
@@ -2139,6 +2140,17 @@ todo_wine
iob
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
(
LONGLONG
)
-
2
/* FILE_USE_FILE_POINTER_POSITION */
;
status
=
pNtWriteFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
contents
,
sizeof
(
contents
),
&
offset
,
NULL
);
todo_wine
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
status
);
todo_wine
ok
(
iob
.
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
iob
.
Status
);
todo_wine
ok
(
iob
.
Information
==
-
1
,
"expected -1, got %ld
\n
"
,
iob
.
Information
);
iob
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
0
;
status
=
pNtWriteFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
contents
,
sizeof
(
contents
),
&
offset
,
NULL
);
todo_wine
...
...
@@ -2175,8 +2187,15 @@ todo_wine
ok
(
iob
.
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
iob
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"expected -1, got %ld
\n
"
,
iob
.
Information
);
iob
.
Status
=
-
1
;
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
(
LONGLONG
)
-
2
/* FILE_USE_FILE_POINTER_POSITION */
;
offset
.
QuadPart
=
sizeof
(
contents
);
/* magic -2 doen't seem to work under win7 */
status
=
pNtReadFile
(
hfile
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
sizeof
(
buf
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"expected STATUS_INVALID_PARAMETER, got %#x
\n
"
,
status
);
ok
(
iob
.
Status
==
-
1
,
"expected -1, got %#x
\n
"
,
iob
.
Status
);
ok
(
iob
.
Information
==
-
1
,
"expected -1, got %ld
\n
"
,
iob
.
Information
);
offset
.
QuadPart
=
sizeof
(
contents
);
S
(
U
(
ovl
)).
Offset
=
offset
.
u
.
LowPart
;
S
(
U
(
ovl
)).
OffsetHigh
=
offset
.
u
.
HighPart
;
ovl
.
Internal
=
-
1
;
...
...
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