Lauri Kenttä
5b6e1cf2de
msvcrt: Make wcstoi64 support various Unicode digits.
...
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 19:49:31 +01:00
Lauri Kenttä
b0ccba4b33
msvcrt/tests: Test wcstoi64 with various Unicode digits.
...
Test all Unicode digits which Windows seems to support.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 19:48:33 +01:00
Piotr Caban
da071d939f
msvcrt/tests: Correctly declare base class to avoid a compiler warning.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-22 15:08:00 +01:00
Daniel Lehman
cada88a64b
msvcrt: Add _lfind_s.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-29 12:14:44 +01:00
Piotr Caban
1680e98427
msvcrt: Improve multibyte characters support in printf.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 16:06:30 -06:00
Piotr Caban
d6948bf356
msvcrt: Add support for multibyte characters in _Strftime.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 12:07:29 +09:00
Piotr Caban
acba871d53
msvcrt: Add mbsrtowcs_s tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 21:16:51 +09:00
Nikolay Sivov
1b072058ac
msvcrt/tests: Fix a test failure on early XP versions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 21:16:35 +09:00
André Hentschel
a313c9b7f9
msvcrt/tests: Don't test function directly when reporting errno.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:52 +09:00
Nikolay Sivov
50dd4b8928
msvcrt: Handle overflow in calloc().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 20:49:42 +09:00
Nikolay Sivov
21fd1d3729
msvcrt: Fix calloc() prototype.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 14:48:47 +09:00
Frédéric Delanoy
0da6cca13c
msvcrt/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 19:54:49 +09:00
Piotr Caban
96d476584e
msvcrt/tests: Add close tests on file descriptors that use the same HANDLE.
...
Based on Qian Hong patch.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-20 12:09:22 +09:00
Francois Gouget
981c16e4e6
msvcrt/tests: Fix the Norwegian locale tests on Windows 10.
...
Also add comments to indicate which Windows version returns what.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 22:58:25 +09:00
Sebastian Lackner
340f1615bd
msvcrt/tests: Use brackets to protect arguments in call_func2 macro.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 20:26:22 +09:00
Paul Gofman
faf59e5f06
msvcrt: Handle of thread created by _beginthread should not be closed on thread detach.
...
Handle should be closed if _endthread is called or thread function
exits. If thread is terminated by ExitThread or _endthreadex, thread
handle remains valid.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 21:41:22 +09:00
Piotr Caban
6ac2acc34f
msvcrt: Add support for $$B datatype description format in unDName.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-21 17:01:45 +09:00
Piotr Caban
112ad7fc87
msvcrt: Add support for member function pointers demangling in unDName function.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-21 17:01:45 +09:00
Piotr Caban
9189eb2208
msvcrt: Fix size test of structure returned by _Gettnames.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 21:19:17 +09:00
Alexandre Julliard
0ea5a01ca2
msvcrt/tests: Don't check array pointer for NULL.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 01:56:06 +09:00
Nikolay Sivov
d99727bcb3
msvcrt: Fix char to int promotion that breaks pattern lookup.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:31:53 +01:00
Andrey Gusev
8bfc9bd2ee
Assorted typos fixes.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Hugh McMaster
11669fa5e2
Assorted spelling and grammar fixes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Martin Storsjo
4a79e54917
ucrtbase: Handle the C99 'z' size_t specifier for integers.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:32 +09:00
Martin Storsjo
494572ed4d
msvcrt: Interpret 'I' as size_t size specifier for integer conversions.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:27 +09:00
Martin Storsjo
1d17e85026
msvcrt: Ignore 'N' as format length modifier for pointers, just like 'F'.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:07 +09:00
Martin Storsjo
bf4493404c
msvcrt: Remove a stray semicolon.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 23:35:29 +09:00
Nikolay Sivov
d8623f8241
msvcrt/tests: Use matching type to get array element count (PVS-Studio).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 18:41:17 +09:00
Piotr Caban
b408b5a9a4
msvcrt/tests: Fix tolower test failures.
2015-09-14 16:47:52 +09:00
Andrey Gusev
d3177504b1
Assorted spelling and typos fixes.
2015-08-31 20:18:46 +09:00
Martin Storsjo
8edbd9b381
msvcrt: Test that the normal strtod doesn't handle the "NAN" string.
2015-08-31 14:50:42 +09:00
Andrey Gusev
5cdcd4493f
Assorted spelling and typos fixes.
2015-08-18 15:00:13 +09:00
Iván Matellanes
ea2798f1ce
msvcrt: _setmode should check if file descriptor is valid.
2015-08-05 23:45:50 +09:00
Piotr Caban
cf20731447
msvcrt: Add _mbscat_s_l implementation.
2015-07-07 16:52:20 +09:00
Sebastian Lackner
abbb361733
msvcrt: Set *end to NULL when strtod is called with NULL pointer string.
2015-06-29 19:07:50 +09:00
Michael Müller
ffcb4e0724
msvcrt/tests: Add additional tests for atof / strtod functions.
...
From: Michael Müller <michael@fds-team.de>
2015-06-29 19:07:50 +09:00
Piotr Caban
0922865b37
msvcrt: Fix strtol implementation on strings not containing valid number.
2015-06-08 19:07:55 +09:00
Piotr Caban
86baccc9ae
msvcrt: Get rid of msvcrt_fdtoh helper.
2015-06-03 22:52:00 +09:00
Hans Leidekker
bbd0e56a58
msvcrt: Handle NULL arguments in _mbscmp.
2015-04-24 22:04:09 +09:00
Piotr Caban
248bd63b53
msvcrt/tests: Use NAN and INFINITY definitions from port.h in printf tests.
2015-03-25 22:40:09 +09:00
Piotr Caban
6de6e42a36
msvcrt/tests: Add atan, tanh and exp tests on invalid arguments.
2015-03-25 21:48:02 +09:00
Akihiro Sagawa
cd5a76b182
msvcrt: Add _mbctokata implementation.
2015-03-17 00:20:00 +09:00
Akihiro Sagawa
b6ab2b6268
msvcrt: Add _mbctohira implementation.
2015-03-17 00:19:58 +09:00
Akihiro Sagawa
a2149ba7ba
msvcrt: Fix _ismbckata() for Halfwidth Katakana characters.
2015-03-17 00:19:57 +09:00
Piotr Caban
7880525f44
msvcrt: Handle read buffer flushing in msvcrt_flush_buffer helper.
2015-01-26 11:22:54 +01:00
Hugh McMaster
d999fd0d11
msvcrt/tests: Add more tests for _vsnwprintf.
2015-01-07 23:48:26 +01:00
Piotr Caban
3af24fe1f4
msvcrt: Add _wcsset_s implementation.
2014-12-23 18:59:36 +01:00
Michael Stefaniuc
42e6019c00
msvcrt/tests: Don't open code offsetof().
2014-11-27 11:43:41 +01:00
Nikolay Sivov
1228f0bba5
msvcrt: Added __dstbias() export.
2014-09-10 21:36:52 +02:00
Piotr Caban
7cf23a7957
msvcrt: Fix _stricmp behavior on characters that doesn't fit into signed char.
2014-09-03 16:31:01 +02:00
Piotr Caban
53869e19eb
msvcrt: Add _strnset_s implementation.
2014-09-02 15:07:27 +02:00
Piotr Caban
60eb44d820
msvcrt: Don't touch _bufsiz value while initializing FILE structure.
2014-06-27 10:37:54 +02:00
Piotr Caban
18a416f7d5
msvcrt: Support NULL buffer in setvbuf.
2014-06-26 19:00:41 +02:00
Grazvydas Ignotas
ad968be779
msvcrt: Implement bufsiz block flushing behavior.
2014-06-25 11:48:13 +02:00
Grazvydas Ignotas
c6a160691a
msvcrt: Clear _cnt on buffer flush.
2014-06-25 11:47:30 +02:00
Francois Gouget
eb4d39b9ee
msvcrt/tests: Add a trailing '\n' to an ok() call.
2014-06-18 19:56:07 +02:00
Grazvydas Ignotas
47909d8d8b
msvcrt/tests: Test _cnt value after rewind/fflush.
2014-06-18 19:54:43 +02:00
Piotr Caban
ac399b0842
msvcrt: Add small blocks heap tests.
2014-06-18 19:54:33 +02:00
Alexandre Julliard
762c94144f
msvcrt/tests: Avoid size_t in traces.
2014-06-18 19:52:38 +02:00
Grazvydas Ignotas
40067dd011
msvcrt: Change internal buffer size to 4k.
2014-06-17 12:35:48 +02:00
Grazvydas Ignotas
147be95a68
msvcrt/tests: Add a test for fwrite flushing behavior.
2014-06-17 12:35:33 +02:00
Piotr Caban
00bce25143
msvcrt: Add _strxfrm_l implementation.
2014-06-12 18:25:23 +02:00
Francois Gouget
df5cd21ff6
msvcrt/tests: Make qsort_comp() static.
2014-05-24 11:00:08 +09:00
Piotr Caban
e95938c2d6
msvcrt: Add qsort_s tests.
2014-05-21 19:38:34 +02:00
Piotr Caban
9f17544bc9
msvcrt: Add _mbscpy_s implementation.
2014-05-19 13:01:34 +02:00
Piotr Caban
1d865f90d6
msvcrt/tests: Fix _popen test failures when path contains spaces.
2014-04-21 14:33:06 +02:00
Piotr Caban
92e12bb8fb
msvcrt: Use win_skip when function is not exported.
2014-04-21 14:31:51 +02:00
Piotr Caban
f60b888bb2
msvcrt: Remove _set_invalid_parameter_handler calls from msvcrt tests.
2014-04-21 14:31:41 +02:00
Piotr Caban
0cb5067698
msvcrt: Don't raise exception in _invalid_parameter.
2014-04-21 14:31:38 +02:00
Akihiro Sagawa
ab5db46477
msvcrt: Add MBCS handling for _splitpath.
2014-04-14 20:19:01 +02:00
Piotr Caban
9c1d687a7a
msvcrt: Remove setlocale test with empty locale string.
2014-03-25 19:05:09 +01:00
Piotr Caban
2693ce1a25
msvcrt: Don't add 0x prefix while printing 0 with printf.
2014-03-20 17:44:05 +01:00
Piotr Caban
c4f935d449
msvcrt: Fix p__p___mb_cur_max tests.
2014-03-18 13:26:45 +01:00
Piotr Caban
13f6194bb1
msvcrt: Improve tolower tests.
2014-03-13 20:22:11 +01:00
Piotr Caban
6ad441cd6b
msvcrt: Return error on invalid handle in _open_osfhandle.
2014-02-12 19:15:28 +01:00
Piotr Caban
f4985e42b7
msvcrt/tests: Don't pass path containing spaces to _spawnvp.
2014-02-11 20:22:31 +01:00
Piotr Caban
638c8e3847
msvcrt: Don't overwrite unmatched string in scanf.
2014-01-16 21:04:19 +01:00
Piotr Caban
1d4ac6dc1e
msvcrt/tests: Fix crash in mbstowcs tests.
2014-01-09 17:42:44 +01:00
Piotr Caban
544d179434
msvcrt: Handle null mbstr parameter in mbstowcs.
2014-01-08 16:11:31 +01:00
Alexandre Julliard
3e40fea9d6
makefiles: Automatically add the necessary msvcrt flags to the generated rules.
2014-01-08 14:34:15 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Daniel Lehman
15b35f4d37
msvcrt: Return wall-clock time from clock().
2013-11-25 19:30:20 +01:00
Nikolay Sivov
1f8636c5af
msvcrt/tests: Enable compilation with -D__WINESRC__.
2013-11-05 20:38:55 +01:00
Piotr Caban
d2c8dcb7e0
msvcrt/tests: Fix __unDName test failures on Win2000.
2013-10-23 17:01:47 +02:00
Piotr Caban
d218d82af4
msvcrt: Don't output __ptr64 when UNDNAME_NO_MS_KEYWORDS is used.
2013-10-22 20:19:18 +02:00
Piotr Caban
47908f7ac2
msvcrt: Fix __ptr64 displaying when UNDNAME_NO_LEADING_UNDERSCORES flag is used.
2013-10-22 20:19:17 +02:00
Piotr Caban
0d17c47480
msvcrt: Add support for UNDNAME_NO_THISTYPE flag in __unDName.
2013-10-22 20:19:17 +02:00
Piotr Caban
f906be9ef4
msvcrt: Don't validate parameters in _itoa function.
2013-10-15 16:36:25 +02:00
Piotr Caban
0aa72d880a
msvcrt: Add support for vtordispex demangling.
2013-10-07 14:44:36 +02:00
Piotr Caban
501d60b020
msvcrt: Add support for vcall thunks demangling.
2013-10-07 14:44:36 +02:00
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Michael Stefaniuc
9463dba830
tests: Use the explicit LoadLibraryA function.
2013-10-02 11:02:21 +02:00
Piotr Caban
a449b2d57b
msvcrt: Call MSVCRT_strtoi64_l in strtoul implementation.
2013-09-25 19:30:32 +02:00
André Hentschel
0e867236dc
msvcrt/tests: Load the correct function on ARM.
2013-09-17 12:27:00 +02:00
Piotr Caban
6594212dd6
msvcrt: Fix Inf and NaN handling in printf function.
2013-09-16 19:51:04 +02:00
Piotr Caban
0df84ecf11
msvcrt: Add support for vtordisp functions demangling.
2013-09-12 12:59:14 +02:00
Piotr Caban
024ece50e8
msvcrt: Fix parameter validation in _stat64 function.
2013-08-26 15:01:37 +02:00
Piotr Caban
089cc78182
msvcrt: Fix lookahead buffer usage on pipes.
2013-08-21 19:52:51 +02:00
Álvaro Nieto
e3e1284557
msvrct: Fix strncpy to fill the buffer.
2013-08-16 20:49:36 +02:00
André Hentschel
3d6ebecedb
msvcrt/tests: Fix dynamically loaded functions for ARM.
2013-08-16 11:55:23 +02:00