Commit Graph

34 Commits

Author SHA1 Message Date
Piotr Caban d81afa52ec msvcrt/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-14 11:04:19 +01:00
Piotr Caban e38f3761f8 msvcrt: Rewrite _popen function.
Old implementation was not thread safe, incorrectly copied file
descriptors to child process and was leaking parent pipe fd to child
process.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51719
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-25 18:53:19 +02:00
Martin Storsjo 868c9ee7c9 msvcrt: Add hyperbolic functions NAN tests.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-28 22:07:05 +02:00
Arkadiusz Hiler d3ba02f35c msvcrt/tests: Add CREATE_SUSPENDED test for _beginthreadex().
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-04 21:33:15 +02:00
Alexandre Julliard 1f27361894 msvcrt: Avoid long double type in $I10_OUTPUT().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-17 13:46:26 +01:00
Jacek Caban 22315440fc include: Use long type for __msvcrt_long when possible.
Based on patch by Chip Davis.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 09:21:53 +02:00
Jacek Caban 3dcedeef2d msvcrt/tests: Avoid using msvcrt.h header.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-29 20:39:17 +01:00
Francois Gouget 92d31164aa msvcrt/tests: Avoid an unneeded strlen() call.
Note that buf is an array and thus cannot be NULL.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-10 20:59:19 +01:00
Alexandre Julliard a16ef96dc6 include/msvcrt: Add INFINITY and NAN definitions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:03:37 +02:00
Michael Stefaniuc 3624b7c60c msvcrt/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-21 14:20:57 +02:00
Michael Stefaniuc 6fadcca527 msvcrt/tests: Use NULL instead of casting 0.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 16:26:49 +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
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
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
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
Piotr Caban 6de6e42a36 msvcrt/tests: Add atan, tanh and exp tests on invalid arguments. 2015-03-25 21:48:02 +09: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 1d865f90d6 msvcrt/tests: Fix _popen test failures when path contains spaces. 2014-04-21 14:33:06 +02:00
Piotr Caban 0cb5067698 msvcrt: Don't raise exception in _invalid_parameter. 2014-04-21 14:31:38 +02:00
Piotr Caban 0d0f705048 msvcrt: Added basic _popen tests. 2013-01-18 13:28:59 +01:00
Dan Kegel 4956045842 msvcrt: memmove_s shouldn't zero its output buffer on error. 2012-08-17 14:03:15 +02:00
Marcus Meissner 706b43f4dd msvcrt: Use = instead of == in test (Coverity). 2011-02-24 12:40:14 +01:00
Jörg Höhle d9d4323137 msvcrt/tests: sizeof(long double) is 12 with MS. 2011-02-17 18:33:43 +01:00
Andrew Nguyen 67088eb34c msvcrt: Implement _set_doserrno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen ad68c0bd3c msvcrt: Implement _set_errno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen c3b127f566 msvcrt: Implement _get_doserrno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen 79ab715272 msvcrt: Implement _get_errno. 2010-09-28 17:33:15 +02:00
Andrew Nguyen b7a74d24f5 msvcrt: Implement strerror_s. 2010-09-28 17:33:15 +02:00
Francois Gouget 7649c75b40 Assorted typo and spelling fixes. 2010-06-24 10:37:05 +02:00
Alexander Scott-Johns 5fd1409c6a msvcrt/tests: Rename a variable. 2010-06-17 14:07:15 +02:00
Piotr Caban 4aee4c7d1c msvcrt: Added $I10_OUTPUT implementation. 2010-05-17 14:39:29 +02:00
Piotr Caban 8fc18b6b48 msvcrt: Added memmove_s and memcpy_s implementation. 2010-04-12 17:48:21 +02:00
Andrew Nguyen 841fc1805e msvcrt: Implement and test rand_s. 2010-01-18 14:30:00 +01:00