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
Stefan Huehner
9213d56ae0
Make some function static.
2005-06-20 15:35:54 +00:00
Stefan Huehner
ac6f562b52
Fix more -Wstrict-prototypes warnings.
2005-06-20 14:18:03 +00:00
Uwe Bonnes
dc920056b1
Correct return value of fsetpos.
2005-05-16 08:50:28 +00:00
6cfcda9959
Add test for correctly interpreting %% printf format string conversion
...
specifier.
2005-05-11 12:00:34 +00:00
Hans Leidekker
a19bf290f0
Implement and test _chsize.
2005-03-31 19:06:10 +00:00
C. Scott Ananian
9ef2706a77
Allow scanf to continue parsing format string after a '%n'.
2005-03-10 11:44:19 +00:00
Mike McCormack
5def7dd337
Handle %ls in sprintf.
2005-03-05 10:46:46 +00:00
Mike McCormack
5b4327515e
Handle the printf %F format modifier.
2005-03-04 10:47:27 +00:00
Uwe Bonnes
0fb9ef68f3
Advance over * argument for precision.
...
Honor precision argument for strings.
2005-02-25 19:16:46 +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
Mike McCormack
2cc5f1e469
Add handling of %ws, %S and %C to _vns(w)printf, improve sprintf
...
tests.
2005-02-14 20:53:42 +00:00
Francois Gouget
4d801b66e6
Assorted spelling fixes.
2005-02-10 19:19:35 +00:00
Francois Gouget
168265ebb0
Fix handling of EOF for the '%c' and '%C' cases in scanf().
...
Add conformance tests to verify the behavior of '%c'.
Improve some of the test's error messages.
2005-01-28 11:27:26 +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
Peter Chapman
505dfdefb5
Fix up several inline assembler blocks so that they produce correct
...
code with the -fomit-frame-pointer gcc flag.
2004-12-02 18:19:25 +00:00
Eric Pouech
d3b39fe3f2
Fixed file name when opening NUL.
2004-11-28 15:01:50 +00:00
Eric Pouech
a2d24c8a4a
Now that name undecoration works, fix the type info.
2004-11-08 22:11:05 +00:00
Rein Klazes
dceae02d73
- RtlTimeFieldsToTime should not normalize the time fields
...
structure. Instead return error when it is given an unormalized
date.
- Use better algorithms for RtlTimeToTimeFields and
RtlTimeFieldsToTime. RtlTimeToTimeFields is about 3 times faster.
- Add tests for RtlTimeFieldsToTime.
- SystemTimeToFileTime must fail if RtlTimeFieldsToTime fails. Users
of SystemTimeToFileTime must do likewise.
- Remove a todo_wine from SystemTimeToFileTime tests.
- Since msvcrt.mktime must accept unnormalized dates, it cannot use
SystemTimeToFileTime and do the calculations itself.
- Add some tests for mktime accepting unnormalized dates.
2004-11-06 03:53:53 +00:00
Aneurin Price
97cc28ff0f
- Move printf tests from scanf.c to printf.c (and fix one on the
...
way).
- Add some more.
2004-11-04 21:03:30 +00:00
Rein Klazes
4ca34c4b2f
Correctly use the returned value from GetTimeZoneInformation.
2004-10-25 21:48:57 +00:00
Uwe Bonnes
46e922bba5
Added MSVCRT_CLOCKS_PER_SEC define.
2004-09-08 19:05:28 +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
dff5004bc0
Assorted spelling fixes.
2004-08-26 00:31:20 +00:00
Francois Gouget
48ea250887
Don't define __WINE_USE_MSVCRT in the Visual C++ project. It is not
...
needed as it is defined by the Wine headers.
Use __WINE_USE_MSVCRT to detect whether we are being compiled with the
Wine MSVCRT headers or the Windows ones. In the latter case:
- don't try to include the Wine-specific msvcrt headers
- skip all the headers.c tests since there's no MSVCRT_* symbols to
check
2004-08-11 19:36:17 +00:00
Mike Hearn
ad4a00d35a
Add some test cases for _wputenv, fix deletion of non-existent
...
environment variables, return -1 on error.
2004-07-19 21:23:02 +00:00
Pierre d'Herbemont
2c3bf27108
Don't test i386 types on non i386.
2004-07-12 23:48:58 +00:00
Alexandre Julliard
bfb98f66f6
Added tests for div_t and ldiv_t.
2004-07-06 18:45:26 +00:00
Dimitrie O. Paun
0377462460
Split the MSVCRT implementation headers from the public headers.
...
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +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
Uwe Bonnes
1c6cb382bc
Correct errors with move to kernel time functions.
...
Add test case.
2004-03-25 00:12:40 +00:00
Uwe Bonnes
9c6774f18a
Relay msvcrt_memcpy to memmove, CString::Insert seems to rely on that
...
behaviour. Add a test case.
2004-03-19 01:53:11 +00:00
Dimitrie O. Paun
bb6d87f626
Heap tests cleanup.
2004-03-11 00:38:14 +00:00
Alexandre Julliard
589e115233
We no longer use the .exe.spec.c files.
2004-03-02 21:16:37 +00:00
Francois Gouget
231fbff8d0
Add trailing '\n's to ok() calls.
2004-01-27 04:01:10 +00:00
Peter Berg Larsen
a457ee0a3d
%[a-z] and %[z-a] are interpreted as equivalent to %[abcde...z].
...
Added some scanf tests.
2004-01-06 21:36: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
Uwe Bonnes
545a3b7118
Patch and test for scanf %i.
2003-12-15 21:06:19 +00:00
Ferenc Wagner
20c1d1e0f9
Added snprintf test.
2003-12-15 19:50:05 +00:00
Dimitrie O. Paun
c5150fb682
Fix realloc() to match the documented behaviour.
...
Add a few simple tests for it.
2003-11-20 23:41:13 +00:00
Uwe Bonnes
16c3f341f9
Another difference in the printf family.
2003-10-28 00:04:42 +00:00
Uwe Bonnes
c23a9257f0
Added a test case for sprintf.
2003-10-24 04:24:08 +00:00
Pavel Roskin
fac7e78a18
Added test for tmpnam().
2003-10-24 00:24:08 +00:00
Daniel Marmier
f95be92d24
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-15 03:35:54 +00:00
Uwe Bonnes
78754341db
Added test for %n.
2003-10-10 00:00:35 +00:00
Uwe Bonnes
3e83ec296e
Added some tests around fget(w)s.
2003-10-07 05:30:36 +00:00
Jon Griffiths
90535ce905
Various test fixes for XP/msvc.
2003-09-25 20:29:40 +00:00
Jon Griffiths
0b2d44ed53
Added tests for cpp objects/RTTI.
2003-09-24 18:49:45 +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
Uwe Bonnes
29c7e32f83
Fix some sscanf cases and testcase to get wxtide32.exe running.
2003-05-13 23:38:46 +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
Mehmet Yasar
653510348a
- return EOF when stream is empty
...
- conformance test updated
2003-01-11 20:53:22 +00:00
Alexandre Julliard
7ea8a0b9be
Handle unknown format chars correctly (spotted by György 'Nog'
...
Jeney) and added test for it.
Removed unneeded _L_ macro.
2002-12-20 00:35:41 +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
Patrik Stridvall
517a93afe3
Fixed some issues found by winapi_check.
2002-11-06 19:57:49 +00:00
Uwe Bonnes
a768fa3119
First version of msvcrt scanf test.
2002-10-30 23:49:03 +00:00