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
935fcfa8
Commit
935fcfa8
authored
Oct 08, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Oct 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few tests that fail under wine.
parent
3855450a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
file.c
dlls/msvcrt/tests/file.c
+13
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
935fcfa8
...
...
@@ -250,6 +250,19 @@ static void test_file_write_read( void )
ok
(
memcmp
(
mytext
,
btext
,
strlen
(
mytext
))
==
0
,
"problems with _O_APPEND _read
\n
"
);
_close
(
tempfd
);
/* Test reading only \n or \r */
tempfd
=
_open
(
tempf
,
_O_RDONLY
|
_O_TEXT
);
/* open in TEXT mode */
_lseek
(
tempfd
,
-
1
,
FILE_END
);
ok
(
_read
(
tempfd
,
btext
,
LLEN
)
==
1
,
"_read expected 0 got '
\\
n'
\n
"
);
_lseek
(
tempfd
,
-
2
,
FILE_END
);
ret
=
_read
(
tempfd
,
btext
,
LLEN
);
ok
(
ret
==
1
&&
*
btext
==
'\n'
,
"_read expected '
\\
n' got bad length: %d
\n
"
,
ret
);
_lseek
(
tempfd
,
-
3
,
FILE_END
);
ret
=
_read
(
tempfd
,
btext
,
2
);
todo_wine
ok
(
ret
==
1
&&
*
btext
==
'e'
,
"_read expected 'e' got
\"
%.*s
\"
bad length: %d
\n
"
,
ret
,
btext
,
ret
);
todo_wine
ok
(
tell
(
tempfd
)
==
42
,
"bad position %lu expecting 42
\n
"
,
tell
(
tempfd
));
_close
(
tempfd
);
ret
=
unlink
(
tempf
);
ok
(
ret
!=-
1
,
"Can't unlink '%s': %d
\n
"
,
tempf
,
errno
);
...
...
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