Francois Gouget
a50dfc174e
msvcrt/tests: Fix a signed/unsigned int mismatch.
2007-05-29 12:12:05 +02:00
Francois Gouget
cf218621fd
msvcrt: When operating on a closed pipe, read() should return 0, not -1.
...
Add tests to make sure read() and fread() work right on closed pipes.
2007-05-22 12:01:35 +02:00
Francois Gouget
784693bb5a
msvcrt: Remove the S_ISXXX() macros as they are not present in the Visual C++ headers.
2007-05-22 12:01:28 +02:00
Damjan Jovanovic
2705d78876
msvcrt: Fix fstat's handling of pipes and char devices.
...
For pipes/char devices, st_dev and st_rdev should be the fd, st_nlink
is always 1, and st_mode is S_IFIFO and S_IFCHR respectively.
Added tests to prove the new behaviour right.
2007-02-16 13:13:37 +01:00
Andrew Talbot
ac550a88ef
msvcrt/tests: Cast-qual warnings fix.
2006-12-13 11:49:06 +01:00
Francois Gouget
b2765fc45a
msvcrt/tests: The tests must not include msvcrt.h because it contains declarations that may be incompatible with the PSDK headers.
2006-11-24 11:49:13 +01:00
Alexandre Julliard
63b62dc50b
msvcrt/tests: Clean up a temp file.
2006-11-14 12:00:38 +01:00
Louis. Lenders
32ffc7cb8a
msvcrt: Add stub for _setmaxstdio + tiny test.
2006-10-31 11:46:20 +01:00
Duane Clark
b4c1c67ea4
msvcrt: Fix fread on large buffers in ascii mode.
2006-10-27 12:30:24 +02:00
Markus Amsler
9ae995f674
msvcrt: Fix fread eof handling.
2006-10-13 11:20:40 +02:00
Markus Amsler
ef5ed0a42a
msvcrt: Add fread eof tests.
2006-10-13 11:20:26 +02:00
Michael Stefaniuc
173f7bd26c
janitorial: Remove remaining NULL checks before free() (found by Smatch).
2006-10-10 12:56:24 +02:00
Duane Clark
9a71b483d3
msvcrt: fgetc needs to use unsigned parameters.
...
Spotted by and adapted from test written by Tobias Ringström.
2006-09-26 11:41:25 +02:00
Duane Clark
4d3952f3dc
msvcrt: In text mode a ctrl-z signals EOF.
...
Spotted by David Hagood with test suggested by Dan Kegel.
2006-08-09 17:33:23 +02:00
Duane Clark
bc194793a7
msvcrt: Fix fgetwc/s in binary mode.
2006-07-31 21:44:17 +02:00
Duane Clark
d74b6055fe
msvcrt: Test fgetwc/s in binary mode.
2006-07-31 21:43:08 +02:00
Duane Clark
88aeeb9fd8
msvcrt: Fix _getw.
2006-07-31 11:15:21 +02:00
Duane Clark
b44ea8084d
msvcrt: Fix fread.
2006-07-31 11:15:21 +02:00
Duane Clark
b37b967add
msvcrt: Fix _read and fgetc.
2006-07-31 11:15:21 +02:00
Duane Clark
1aa8db05a0
msvcrt: File read buffer tests.
2006-07-31 11:15:21 +02:00
Duane Clark
f8e4d4ccee
msvcrt: Add tests of file operations in ASCII mode.
2006-07-18 11:16:31 +02:00
Ivan Leo
f2bfc7b12d
msvcrt/tests: Don't leave files on the disk.
2006-06-27 21:14:02 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
qingdoa daoo
4f7adfb04a
msvcrt: Don't duplicate handle in _get_osfhandle.
2006-05-08 17:40:09 +02:00
Francois Gouget
e092adfc9b
Add trailing '\n's to ok() calls.
2006-02-24 21:07:33 +01:00
Peter Beutner
72017cc9ab
msvcrt: Correctly set EOF flag in fread().
...
Setting the EOF flag only if _read() returns zero is not enough as we
could also read something AND hit the end of file.
_read() already sets another internal EOF flag, so just use this too.
Removing todo_wine from the test case.
2006-02-17 17:38:03 +01:00
Peter Beutner
b786ea588c
msvcrt: Add test for fread/feof.
...
When calling fread() with a large enough buffer to reach the end of
the file a subsequent feof() should return true; (marked as todo_wine
because it doesn't work atm).
2006-02-17 17:37:40 +01:00
Saulius Krasuckas
b9758443e2
Minor MSVCRT test changes:
...
- add two invalid parameter checks for fopen(),
- rearrange test sequence into two parts (low-level and stream I/O),
- break long line.
2005-11-21 11:58:11 +00:00
Saulius Krasuckas
5a10c37dba
Fix _fcloseall() return value.
...
Improve some trace messages.
Add tests for fopen(), fclose(), _fcloseall().
Stricten some checks of _unlink().
2005-11-16 11:47:51 +00:00
Richard Cohen
b70a5f2954
Fix an error message.
2005-10-10 10:29:24 +00:00
Vitaliy Margolen
935fcfa8bc
Add a few tests that fail under wine.
2005-10-08 10:34:58 +00:00
Vitaliy Margolen
a6a5fb7a70
Fix initial position for files opened with O_APPEND flag.
2005-10-07 15:01:15 +00:00
Paul Rupe
45f1b06b94
Make ungetc(EOF) a no-op.
2005-06-25 17:58:19 +00:00
Uwe Bonnes
dc920056b1
Correct return value of fsetpos.
2005-05-16 08:50:28 +00:00
Hans Leidekker
a19bf290f0
Implement and test _chsize.
2005-03-31 19:06:10 +00:00
Francois Gouget
dd073bbb3f
Cast the GetProcAddress() return value to avoid warnings about the
...
function pointer being of the wrong type.
Fix assorted signed/unsigned comparison warnings.
2005-02-14 21:04:45 +00:00
Rein Klazes
3714a39867
Correct cases where arguments of ok() calls depend on the order in
...
which they are evaluated.
2004-12-27 17:26:37 +00:00
Francois Gouget
eb3f078c75
Add trailing '\n's to ok() calls.
2004-12-14 11:41:24 +00:00
Eric Pouech
0bfb1cbc6b
- msvcrt: the file descriptors are now inherited between parent/child
...
processes
- kernel32.CreateProcess: make use of the *reserved2 fields for
C-RunTime data inheritance
2004-09-03 01:05:30 +00:00
Francois Gouget
cfc3943c5f
Make our ascii strings static const.
...
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Francois Gouget
231fbff8d0
Add trailing '\n's to ok() calls.
2004-01-27 04:01:10 +00:00
Ferenc Wagner
d8e98d3a0a
Fix undeleted temporary file.
...
Correct error messages and comments, break long lines.
2003-12-30 19:09:08 +00:00
Pavel Roskin
fac7e78a18
Added test for tmpnam().
2003-10-24 00:24:08 +00:00
Uwe Bonnes
3e83ec296e
Added some tests around fget(w)s.
2003-10-07 05:30:36 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Francois Gouget
2ec955c93f
Change the #include order so the test compiles with the MSVC headers.
...
Fix a few signed/unsigned warnings.
2003-05-13 00:29:34 +00:00
Uwe Bonnes
f540ea642e
Rough implementation of _O_TEXT/_O_BINARY translation by doing single
...
byte read/writes in _O_TEXT mode and CR/LR handling.
fput/getwc must read multibyte characters in _O_TEXT.
Added test cases for _O_TEXT/_O_BINARY file handling and fgetws.
2003-02-19 22:09:33 +00:00
Bill Currie
c78902221f
fdopen: don't rewind the file after creating the FILE* handle. Added
...
unit test for that.
2002-12-17 04:18:07 +00:00