Peter Beutner
1a688cd058
msvcrt: Fix _makepath().
2007-08-07 12:36:23 +02:00
Peter Beutner
2b3c19fe55
msvcrt: Add _makepath() tests.
2007-08-07 12:36:12 +02:00
Robert Reif
cf7c156fe3
msvcrt/tests: Add _aligned_malloc tests.
2007-07-31 20:32:57 +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
Francois Gouget
f793221f0f
msvcrt/tests: When compiling with Visual C++ 2005, one must define _CRT_NON_CONFORMING_SWPRINTFS otherwise swprintf() takes an extra parameter.
2007-05-22 11:59:56 +02:00
Michael Stefaniuc
590bf1be88
msvcrt: Demangle a C++ mangled string that is only a name with it's template argument list.
2007-04-06 12:31:05 +02:00
Andrew Talbot
1e8e0a4ed2
msvcrt/tests: Replace inline static with static inline.
2007-03-23 12:29:28 +01:00
Jan Zerebecki
fbe9b578e1
msvcrt: Remove unused variable.
2007-03-15 12:25:12 +01:00
Alexandre Julliard
8f097d8c9d
msvcrt: _initterm doesn't return anything.
2007-03-14 12:26:43 +01:00
Paul Vriens
8ebcf40043
msvcrt/tests: Properly remove temporary directory.
2007-03-06 22:00:11 +01: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
Damjan Jovanovic
7ecc283bd9
msvcrt: Implemented stat64, wstat64 and fstat64.
...
Change all other variations of stat use the stat64 family, since it is
the most general.
2007-02-14 12:31:14 +01:00
Michael Stefaniuc
bbe9c51b31
msvcrt: Fix *printf() handling of negative field width.
2007-02-05 12:26:10 +01:00
Alasdair Sinclair
8137c094fd
msvcrt: If we're at EOF in the buffer and we have pattern %n in format string we should not count the EOF in the total.
2007-01-17 11:23:34 +01:00
Duane Clark
67386352c8
msvcrt: Add function _mbsspnp.
2006-12-24 13:07:22 +01:00
Francois Gouget
f0dd63cbb4
msvcrt: The tests link with msvcrt(d).dll now, so use GetModuleHandle() rather than LoadLibrary().
2006-12-14 12:44:28 +01:00
Andrew Talbot
ac550a88ef
msvcrt/tests: Cast-qual warnings fix.
2006-12-13 11:49:06 +01:00
Andrew Talbot
9317377fb8
msvcrt/tests: Cast-qual warnings fix.
2006-12-12 12:11:12 +01:00
Andrew Talbot
24c4f46da4
msvcrt/tests: Cast-qual warnings fix.
2006-12-12 12:11:07 +01:00
Marcus Meissner
f0280cbd1e
made functions and variables static in some testcases.
2006-12-11 12:18:29 +01:00
Francois Gouget
bb8e625b5b
Assorted spelling fixes.
2006-12-05 10:31:47 +01:00
Francois Gouget
1a145bb532
msvcrt/tests: We cannot link with _initterm() with Visual C++, so we have to load it dynamically.
2006-11-24 12:56:35 +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
Jesse Allen
a697fe51e0
msvcrt: printf buffer overrun tests.
2006-11-14 11:37:40 +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
Michael Stefaniuc
223b92fc67
msvcrt/tests: Win64 printf format warning fixes.
2006-10-06 12:33:29 +02:00
Michael Stefaniuc
85ce5117c5
Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int.
2006-09-29 16:08:30 +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
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Andrzej Popowski
4e5c51a6ee
msvcrt: Fix scanf format "%i" base detection.
2006-08-23 17:04:53 +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
Alexandre Julliard
0fa8baafcb
make_dlls: Recursively ignore .ok files in all tests directories.
2006-07-10 21:26:50 +02:00
Alexandre Julliard
edd100b899
make_dlls: Recursively ignore testlist.c in all tests directories.
2006-07-10 21:19:42 +02:00
Alexandre Julliard
cc2b3b48e6
Take advantage of the recursive nature of .gitignore for Makefile entries.
...
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Ivan Leo
f2bfc7b12d
msvcrt/tests: Don't leave files on the disk.
2006-06-27 21:14:02 +02:00
Louis. Lenders
6f1ab505ac
msvcrt: Add simple test for _strdup(0).
2006-06-21 13:54:06 +02:00
Andrew Ziem
2132eb5490
msvcrt: Fix _initterm, with tests.
2006-06-21 13:40:33 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Peter Beutner
bc83ae9fda
msvcrt: Fix handling of 'h' prefix in swprintf.
...
- '%hs' in widechar string functions is wrongly recognized as
a widechar string. Fix this by always checking the prefix first.
- add testcase
- remove code duplication in %c/%s handling by moving code into a function.
2006-05-16 20:21:44 +02:00
Vitaliy Margolen
99cfc8bdf8
msvcrt: Fix times tests to pass on windows.
...
Add more tests for daylight-time savings.
2006-05-15 14:25:52 +02:00
qingdoa daoo
4f7adfb04a
msvcrt: Don't duplicate handle in _get_osfhandle.
2006-05-08 17:40:09 +02:00
qingdoa daoo
35a9398ffe
msvcrt: Allow environment strings longer than 512 characters.
2006-04-03 11:39:56 +02:00
H. Verbeet
8c29b7dc8b
msvcrt: Fix reading of signed numbers with unsigned read types in scanf.
2006-03-27 11:30:50 +02:00
Eric Pouech
f7441f9e1a
msvcrt: Some more fixes to name demangling.
2006-03-06 11:37:14 +01:00
Francois Gouget
e092adfc9b
Add trailing '\n's to ok() calls.
2006-02-24 21:07:33 +01:00
Michael Stefaniuc
067be97852
msvcrt: Add some tests for __unDName().
...
Add some tests for unDName() checking:
- data type modifiers A,B,P,Q,R,S
- literal strings
- back references to names
2006-02-20 11:18:25 +01:00
Michael Stefaniuc
29fe8d02c7
msvcrt: Fix 20 tests from demangle_test() on old Win versions.
...
In test_demangle use a custom strcmp that treats multiple spaces as
single space. __unDName() from older msvcrt (including W2K it seems)
emit in some places 2 spaces instead of one. Fixes 20 failing tests on
those old Windows versions.
2006-02-20 11:16:27 +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
Eric Pouech
e66e227dbe
Fixes for missing prototypes warnings.
2006-02-06 13:13:28 +01:00
Alexandre Julliard
4755f8acec
msvcrt: Added EILSEQ definition.
2006-01-23 19:29:36 +01:00
Alexandre Julliard
ee603ce6dd
msvcrt: Make snprintf and snwprintf use the msvcrt version of printf.
...
Remove todos from tests that succeed now.
2006-01-14 17:30:02 +01:00
Alexandre Julliard
ad8cb6133e
msvcrt: Reimplement rand() and srand() to use per-thread data for the
...
random seed.
2006-01-14 17:27:28 +01:00
Aric Stewart
4bc3b16b44
msvcrt: Modify dir test to create its own directory to ensure the
...
directory exists for the test. Using the temp dir as the root.
2006-01-11 20:55:38 +01:00
Aric Stewart
3022ade359
msvcrt: Add a regression test for _fullpath.
2006-01-06 21:46:09 +01:00
Jesse Allen
c5dc38874a
msvcrt: More printf tests for I64 integer size support.
2005-12-26 13:01:49 +01:00
Jesse Allen
6c70942a05
msvcrt: Parse I, I32, and I64 integer size flags in printf.
2005-12-26 13:00:01 +01:00
Jesse Allen
180326bb0a
msvcrt: Fix printf sign flags.
...
Fix the printf sign flags so that '+' doesn't always override ' '
space alone. If they both appear, continue parsing and let '+' take
precedence.
2005-12-21 20:07:03 +01:00
Jesse Allen
39b725b799
msvcrt: Ignore PadZero when LeftAlign is true in printf conversions.
2005-12-20 11:49:05 +01:00
Jesse Allen
5c6311688c
msvcrt: Require exact uppercase and lowercase format in printf routines.
2005-12-19 21:26:46 +01:00
Alexandre Julliard
7dd571693a
Improved the CHECK_DEF macro to avoid code duplication.
2005-12-01 12:55:53 +01:00
Alexandre Julliard
c1ed640224
Prefix signal definitions with MSVCRT_ to avoid conflicts with system
...
headers.
2005-12-01 12:48:44 +01:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Mike McCormack
d160c8b926
Add some tests for _fcvt.
2005-11-24 19:23:10 +01:00
Rein Klazes
6f92870a80
Fix _mbsspn() with conformance tests.
2005-11-21 12:03:18 +00: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
Eric Pouech
9db2d323fa
Provide a sample of the joy of MSC symbol mangling.
2005-11-17 11:05:00 +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
Uwe Bonnes
6cc66c9925
Undname: Allow more then one coded character in demangle_datatype.
2005-11-14 15:11:39 +00:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Kevin Koltzau
935dea2fb4
Fix warnings and errors in 64bit.
2005-11-03 13:17:51 +00:00
Robert Reif
b8d1544661
Implement _wstrdate and _wstrtime with tests.
2005-10-30 19:03:58 +00:00
Vijay Kiran Kamuju
ecc633adb7
Added a test case for %0f and %.0f.
2005-10-27 12:25:18 +00:00
Vijay Kiran Kamuju
9c6a15ce62
Fix msvcrt symbol demangling for non MS symbols.
2005-10-20 13:15:11 +00:00
Vitaliy Margolen
9b748c8de2
Fix _ismbblead test to pass on windows.
2005-10-10 18:00:20 +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
Vijay Kiran Kamuju
6e940bb21e
Added a test for failing _ismbblead.
2005-09-06 11:41:48 +00:00
Alexandre Julliard
cc4da88563
Explicitly import kernel32 in tests that use it.
2005-08-27 09:27:09 +00:00
Jason Edmeades
8f8ec2adcc
_swab failed if src == dest, plus some testcases.
2005-08-19 10:01:42 +00:00
Mike McCormack
b744372231
Turn off gcc 4.0's builtin wchar inlines.
2005-08-11 17:12:18 +00:00
Stefan Huehner
17ed5537e7
Fix some more -Wmissing-declarations warnings.
2005-07-05 11:05:50 +00:00
Stefan Huehner
ffe53258aa
Fix some -Wstrict-prototypes warnings.
2005-06-27 09:57:28 +00:00
Paul Rupe
45f1b06b94
Make ungetc(EOF) a no-op.
2005-06-25 17:58:19 +00:00
Stefan Huehner
863a4b1488
Fix some more -Wstrict-prototypes warnings.
2005-06-21 20:53:13 +00:00