84 Commits

Author SHA1 Message Date
Francois Gouget
1f07f583cf msvcrt/tests: Make test_dup2() static. 2010-06-22 20:03:49 +02:00
Alexandre Julliard
ba7cbccfcb msvcrt/tests: Avoid size_t in a trace. 2010-02-16 15:50:32 +01:00
Uwe Bonnes
0d16965832 msvcrt: read_i should pull in LF after CR only in unbuffered mode. 2010-01-28 15:30:26 +01:00
Uwe Bonnes
e6f1ae029e msvcrt: Handle CR at buffer boundary and test case. 2010-01-18 15:32:53 +01:00
Jeff Zaroyko
c2459deeff msvcrt: Check if argument passed to _dup2 is positive. 2010-01-14 09:41:43 -06:00
Jeff Zaroyko
f4e5ab4892 msvcrt/tests: Test _dup2 for failure when second arg is negative. 2010-01-14 09:41:30 -06:00
Uwe Bonnes
5926277473 msvcrt: In unbuffered text mode reading \r\n with fgetc fails. 2010-01-11 13:39:54 -06:00
Nikolay Sivov
e5e17ca438 msvcrt/tests: Free temporary file name after test. 2009-12-07 14:18:27 +01:00
Alexandre Julliard
da2db26dec msvcrt/tests: Add tests for the handle inheritance block.
Based on a patch by André Hentschel.
2009-09-10 15:29:35 +02:00
Alexandre Julliard
82f175e9b5 msvcrt: Replace long by MSVCRT_long. 2009-05-23 11:57:39 +02:00
Juan M. Navarro
c9b40bff32 msvcrt/tests: Avoid size_t in printf format. 2009-02-18 15:03:30 +01:00
Francois Gouget
f250f4fa04 Assorted spelling fixes. 2009-02-11 15:56:02 +01:00
Francois Gouget
4ee530b2a7 msvcrt/tests: Remove a space before a '\n'. 2009-01-30 14:05:56 +01:00
Dan Kegel
7f3c70c52f msvcrt: Remove CRs earlier in ascii mode in fseek, too. 2009-01-29 12:21:11 +01:00
Dan Kegel
5bf1ae82f1 msvcrt: _flsbuf zeroes _cnt. 2009-01-29 12:20:44 +01:00
Uwe Bonnes
d0e77f8a47 msvcrt/tests: Test case to show Wine still mishandles file text mode. 2009-01-28 14:36:52 +01:00
Dan Kegel
ebe4a9e321 msvcrt: Remove CRs earlier in ascii mode. 2009-01-19 13:36:26 +01:00
Alexandre Julliard
2cf2c4568f msvcrt/tests: Fix some printf formats for 64-bit. 2009-01-03 20:24:10 +01:00
Michael Stefaniuc
a4c2a0ee20 msvcrt/tests: Use the C standard for multiline strings. 2008-12-23 18:51:20 +01:00
Alexandre Julliard
d77eba57f1 msvcrt/tests: Avoid sizeof in a trace. 2008-12-20 13:33:08 +01:00
Francois Gouget
9a911f5443 msvcrt/tests: Add a trailing '\n' to an ok() call. 2008-12-17 15:27:20 +01:00
Dan Kegel
72ffe1da67 msvcrt: fread: Exhaust buffered data before using unbuffered data in ascii mode. 2008-12-16 14:23:40 +01:00
Francois Gouget
33dd86d05c msvcrt/tests: Add a trailing '\n' to ok() calls. 2008-12-12 11:40:53 +01:00
Francois Gouget
e766985b20 msvcrt: Fix the permissions returned by fstat*() (with test). 2008-12-10 10:47:34 +01:00
Francois Gouget
266ee43e23 msvcrt/tests: Add a stat() test. 2008-12-10 10:47:23 +01:00
Francois Gouget
5f8c3b4a38 msvcrt/tests: Stricter fstat() tests.
Don't allow fstat() to fail for no reason.
Better check the st_mode field.
2008-12-10 10:47:19 +01:00
Jeff Zaroyko
22a33168c9 kernel32: Modify DeleteFileW to fail on directories. 2008-09-18 12:32:57 +02:00
Rob Shearman
0848a19ec0 msvcrt: Fix character count passed into fgetws in test_fileops. 2008-09-17 12:02:02 +02:00
Jeff Zaroyko
c7093febab msvcrt: Add a test for unlinking non-empty directories. 2008-08-27 13:21:23 +02:00
Michael Karcher
5f2159e806 msvcrt/file: stdio should clamp characters to 8 bits. 2008-08-19 13:04:44 +02:00
Jon Griffiths
09627c8f61 msvcrt: Fix file test which fails on Vista. 2008-05-28 19:32:37 +02:00
Erik de Castro Lopo
60501aa93e msvcrt: Clear end-of-file flag on fseek. 2008-04-09 11:43:35 +02:00
Dan Kegel
316869b273 msvcrt: Fix EOF behavior on read from pipe or console.
The canonical way to detect EOF on read is when you request more than
zero bytes, but zero bytes come back.  Switching to this method seems
to handle a few problem cases better.  Also handle ERROR_BROKEN_PIPE
properly just in case.
2008-02-12 22:35:20 +01:00
Dan Kegel
56eb6f6730 msvcrt: Fix ^Z handling in text mode. 2007-10-09 11:39:57 +02:00
Dan Kegel
4cd3a16f18 msvcrt: Improve CR CR LF handling. 2007-10-05 10:33:27 +02:00
Paul Vriens
56f4262e94 msvcrt/tests: Wait for spawned processes to finish. 2007-08-21 12:41:42 +02:00
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