Commit Graph

409 Commits

Author SHA1 Message Date
Alexander Scott-Johns f2229e6de0 msvcrt/tests: Move function pointer initialization code in printf.c into separate init function. 2010-06-09 16:12:37 +02:00
Alexander Scott-Johns d313c0b982 msvcrt/test: Add some simple _vsnwprintf_s tests. 2010-06-07 13:52:09 +02:00
Alexander Scott-Johns 4e8e2f39c5 include/msvcrt: Define _TRUNCATE; use it in the tests. 2010-06-07 13:51:49 +02:00
Alexander Scott-Johns b205fd8108 msvcrt/tests: Properly skip if functions are not available. 2010-06-07 13:51:24 +02:00
Robert Wilhelm 620af69d88 msvcrt: Support system(NULL). 2010-05-28 16:22:26 +02:00
Gerald Pfeifer 68a94aa901 msvcrt/tests: Adjust CHECK_TYPE to avoid some two dozen compiler warnings. 2010-05-25 12:03:07 +02:00
Piotr Caban 4aee4c7d1c msvcrt: Added $I10_OUTPUT implementation. 2010-05-17 14:39:29 +02:00
Piotr Caban 130686cbfc msvcrt: Fix synonym handling in setlocale/create_locale. 2010-05-10 10:09:21 +02:00
Piotr Caban 0697c5dc0e msvcrt: Partial fix for setlocale/create_locale. 2010-05-10 10:09:09 +02:00
Piotr Caban 2eb4b694a7 msvcrt: Added mbstowcs and wcstombs tests. 2010-05-06 15:24:20 +02:00
Piotr Caban 3f4eded5d4 msvcrt: Added _get_osplatform implementation. 2010-05-05 15:26:45 +02:00
Austin English de83c53085 msvcrt: Fix tests for Windows ME. 2010-05-04 13:15:00 +02:00
Austin English 3c09ca128d msvcrt/tests: Add more tests for setlocale(). 2010-05-03 14:00:47 +02:00
Austin English b581fc5b0b msvcrt/tests: fix a couple typos. 2010-05-03 13:59:49 +02:00
Piotr Caban c4d6877894 msvcrt: Added _mkgmtime implementation. 2010-04-27 13:04:45 -05:00
Piotr Caban f76eef7401 msvcrt: Change strtod_l implementation. 2010-04-26 09:07:02 -05:00
Piotr Caban ca3cb9e2f5 msvcrt/tests: Added sscanf_s tests. 2010-04-22 18:11:24 +02:00
Piotr Caban 94112ff960 msvcrt: Added _strtod_l implementation. 2010-04-21 11:57:12 +02:00
Piotr Caban 8adfd63c21 msvcrt: Return correct strings in setlocale. 2010-04-19 15:12:02 +02:00
Piotr Caban 0d79b4b653 msvcrt/tests: Added __crtGetStringTypeW tests. 2010-04-19 15:11:58 +02:00
Piotr Caban d03020a976 msvcrt/tests: Added setlocale tests. 2010-04-19 15:11:52 +02:00
Piotr Caban 8fc18b6b48 msvcrt: Added memmove_s and memcpy_s implementation. 2010-04-12 17:48:21 +02:00
Piotr Caban f377e4be6b msvcrt: Move invalid parameter tests to msvcr90. 2010-04-01 18:12:58 +02:00
Piotr Caban 9a8fe9679b msvcrt: Added _strtoui64 implementation. 2010-03-29 15:50:21 +02:00
Piotr Caban 585ea9cdd8 msvcrt: Added _strtoi64 implementation. 2010-03-29 15:50:20 +02:00
Piotr Caban 254eab3827 msvcr90: Added _get/set_invalid_parameter_handler implementation. 2010-03-25 16:46:56 +01:00
Piotr Caban c7aba97338 msvcrt: Added strnlen implementation. 2010-03-25 09:46:36 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
David Hedberg 4148ac0ab5 msvcrt: Implement _mbctombb. 2010-02-24 15:12:30 +01:00
David Hedberg 30f6dc9510 msvcrt: Implement _ismbclegal. 2010-02-23 12:09:45 +01:00
David Hedberg 85cc5dd1b2 msvcrt: Add trail bytes info for codepage 1361. 2010-02-23 12:09:33 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01: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
André Hentschel 152c0d4b93 msvcrt/tests: Add some demangle tests. 2010-01-18 14:35:08 +01:00
Andrew Nguyen 841fc1805e msvcrt: Implement and test rand_s. 2010-01-18 14:30:00 +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
Alexandre Julliard da9bc130c6 msvcrt/tests: Fix the signal handler calling convention. 2009-12-09 12:04:41 +01:00
Nikolay Sivov e5e17ca438 msvcrt/tests: Free temporary file name after test. 2009-12-07 14:18:27 +01:00
Peter Rosin f79cd33fc4 msvcrt: Handle the SIGBREAK signal. 2009-12-03 10:14:44 +01:00
Peter Rosin 83ec2f4f04 msvcrt: Add test to check if signal(SIGBREAK, ...) works (todo_wine). 2009-12-03 10:14:31 +01:00
Eric Pouech d568c2ac56 mscvrt: Fix some undname quirks (space at the end of multi-level templates). 2009-11-18 11:09:34 +01:00
Andrew Nguyen 1eb0775670 msvcrt: Implement and test _wcsupr_s. 2009-11-16 17:06:16 +01:00
Eric Pouech 6fab1e86f3 msvcrt: In undname functions, no longer use a fixed-size array for storing internal information. 2009-11-16 13:47:22 +01:00
Michael Stefaniuc 5ca700713d msvcrt/tests: Use LONG instead of long. 2009-10-08 12:17:30 +02: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
Ge van Geldorp d24a5a74b1 msvcrt/tests: Add acceptable error codes for W2K8+. 2009-09-02 15:47:45 +02:00
Eric Pouech 9eca2f81dc msvcrt: Correctly handle the error cases in strtol and strtoul. 2009-09-01 12:43:24 +02:00
Alexandre Julliard 82f175e9b5 msvcrt: Replace long by MSVCRT_long. 2009-05-23 11:57:39 +02:00
Alexandre Julliard 7e082f6608 msvcrt/tests: Make all msvcrt function pointers cdecl. 2009-05-23 11:57:38 +02:00
Alexandre Julliard ac760a47f3 msvcrt: Fix the stat and finddata structures for 64-bit. 2009-05-23 11:57:12 +02:00
Alexandre Julliard 4a7b3460ef msvcrt: Add explicit 32- and 64-bit versions of the utime functions. 2009-05-23 11:12:17 +02:00
Alexandre Julliard 8408e3a955 msvcrt: Add explicit 32- and 64-bit versions of the time functions. 2009-05-23 11:12:12 +02:00
Alexandre Julliard 1c66fab80a msvcrt/tests: Use the _winver etc. variables instead of the __p_ functions that don't exist on 64-bit. 2009-05-20 17:47:43 +02:00
Austin English b7b28159c9 msvcrt/tests: Sign compare fixes. 2009-05-11 12:47:59 +02:00
Rein Klazes b12c46be4a msvcrt/tests: Add some tests for strtok(). 2009-04-22 13:13:38 +02:00
Rein Klazes ed20ac877c msvcrt: Do not set the windows version to 0.5. 2009-04-20 17:29:26 +02:00
Rein Klazes 1ab5f4191d msvcrt: Correct implementation of _ecvt() with tests. 2009-04-14 14:50:07 -05:00
Hans Leidekker c3f6668f33 msvcrt: Add tests for _vscprintf and _vscwprintf. 2009-03-26 16:13:18 +01: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
David Hedberg 2254a549a6 msvcrt: Implement _mbcjistojms. 2009-02-06 13:03:34 +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
Hans Leidekker 120120e37e msvcrt: Add a test for _vsnwprintf. 2009-01-27 14:27:03 +01:00
Alexandre Julliard 8e16e78710 libwine: Re-generate the Windows codepage data using the bestfit files. 2009-01-19 20:33:55 +01:00
Dan Kegel ebe4a9e321 msvcrt: Remove CRs earlier in ascii mode. 2009-01-19 13:36:26 +01:00
Alexandre Julliard 2335a44ed6 msvcrt/tests: Avoid printing pointer differences in traces. 2009-01-08 13:02:17 +01:00
Alexandre Julliard f1b363e27d msvcrt: Fix the time_t definition for the msvcrt build. 2009-01-05 15:07:53 +01:00
Alexandre Julliard 52f87c4a57 msvcrt/tests: Fix the scanf pointer formatting tests on 64-bit. 2009-01-04 14:47:59 +01:00
Alexandre Julliard 159dfb219c msvcrt/tests: Fix the printf pointer formatting tests on 64-bit. 2009-01-04 14:47:59 +01:00
Alexandre Julliard 2cf2c4568f msvcrt/tests: Fix some printf formats for 64-bit. 2009-01-03 20:24:10 +01:00
Alexandre Julliard 4282fc122d msvcrt/tests: Use unsigned int instead of size_t for the malloc tests. 2009-01-03 20:23:06 +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 b455d319f9 msvcrt/tests: Make void test_cp_table() static. 2008-12-12 11:42:13 +01:00
Francois Gouget 33dd86d05c msvcrt/tests: Add a trailing '\n' to ok() calls. 2008-12-12 11:40:53 +01:00
Alexandre Julliard 82bd6f1e10 msvcrt/tests: Load __mb_cur_max and _mbctype dynamically since they may not be available to link against. 2008-12-12 10:19:55 +01:00
Alexandre Julliard 7a6c6747a9 msvcrt: Don't include msvcrt headers, instead duplicate the definitions in msvcrt.h. 2008-12-12 10:19:55 +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
Michael Stefaniuc 276b938e1d msvcrt: Use NULL instead of casting zero. 2008-12-05 12:36:19 +01:00
Alexandre Julliard 64de271939 msvcrt/tests: Run time tests for the current year instead of 1970 and fix wrong DST assumptions. 2008-11-13 14:15:56 +01:00
Alexandre Julliard 1d9fa06aea msvcrt/tests: Trace the timezone being used. 2008-11-12 12:54:11 +01:00
Michael Stefaniuc 4f199a10ad Remove the remaining casts of NULL. 2008-11-03 13:42:09 +01:00
Jeff Zaroyko 82f77cc17a msvcrt: Avoid a NULL pointer deref in ctime. 2008-10-02 11:24:01 -05: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
Alexandre Julliard 3e78cca50c msvcrt/tests: Fix the %n format test for Vista. 2008-09-04 12:27:29 +02:00
James Hawkins 43c97f4477 msvcrt: Trace the results of two failing tests. 2008-09-03 13:14:51 +02:00
Jeff Zaroyko c7093febab msvcrt: Add a test for unlinking non-empty directories. 2008-08-27 13:21:23 +02:00
Alexandre Julliard 42563b407b msvcrt/tests: Add support for some broken demangle results on older Windows versions. 2008-08-26 12:07:43 +02:00
Michael Karcher 5f2159e806 msvcrt/file: stdio should clamp characters to 8 bits. 2008-08-19 13:04:44 +02:00
Jon Griffiths 8e86162be5 msvcrt: Fix exponents in *printf family. 2008-07-16 20:10:28 +02:00
Jon Griffiths 7b7cd31f05 msvcrt: Make tests for [w]makepath pass. 2008-07-09 12:35:07 +02:00
Jon Griffiths afb3593274 msvcrt: Tests for [w]makepath. 2008-07-09 12:35:01 +02:00
Alexandre Julliard c2545cd43e msvcrt/tests: Fix register constraints on thiscall wrappers. 2008-07-08 11:16:01 +02:00
Peter Oberndorfer 9e3a4652da msvcrt: Implement %p for scanf. 2008-07-02 11:37:18 +02:00
Peter Oberndorfer 02fb99e6b3 msvcrt: Add a test for scanf %p. 2008-07-02 11:37:14 +02:00
Alexandre Julliard d36c55001d msvcrt/tests: Fix a couple of tests on Vista. 2008-06-10 17:45:10 +02:00
Jon Griffiths 1484830628 msvcrt: Fix a test that fails on win95. 2008-05-28 19:32:44 +02:00
Jon Griffiths 09627c8f61 msvcrt: Fix file test which fails on Vista. 2008-05-28 19:32:37 +02:00
Jon Griffiths da412d4507 msvcrt: Fix an RTTI test Failure on Vista. 2008-05-28 11:30:35 +02:00
Jon Griffiths 288a48fcf0 msvcrt/tests: Fix 3 tests that always fail on Vista. 2008-05-27 19:36:57 +02:00
Jon Griffiths e5ffcd8827 msvcrt/tests: Fix 4 tests that always fail on Vista. 2008-05-27 12:05:58 +02:00
Alexandre Julliard 83a21c6886 tests: Use the Wine import libraries when compiling with MinGW. 2008-05-26 19:26:20 +02:00
Eric Pouech f55da6db84 msvcrt: Fixed space in type with double indirection.
Spotted by James Hawkins.
2008-04-29 12:36:44 +02:00
Eric Pouech 2e1775620a msvcrt: undname: correctly handle multi-dimensional arrays.
Based on a patch from Ulrich Küttler.
2008-04-29 12:36:35 +02:00
Eric Pouech a940218c0b msvcrt: Fixed symbol unmangling for template-parameter-?? form, as well as test.
Spotted by James Hawkins.
2008-04-29 12:36:08 +02:00
Austin English 05faae7b5a Spelling fixes. 2008-04-09 12:07:39 +02:00
Erik de Castro Lopo 60501aa93e msvcrt: Clear end-of-file flag on fseek. 2008-04-09 11:43:35 +02:00
Alexandre Julliard fea9fb4f47 msvcrt/tests: The new string functions don't have to exist. 2008-03-10 11:30:45 +01:00
Alistair Leslie-Hughes 00609d5e78 msvcrt: Implement wcscpy_s. 2008-02-27 14:52:26 +01: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
Eric Pouech 0920f8e778 msvcrt: symbol undecoration: Really check that we get a template string before making use of it. 2008-01-22 12:07:21 +01:00
Eric Pouech 2e47a3a4f8 msvcrt: symbol undecoration: Now correctly parsing the template forms. 2008-01-22 12:05:05 +01:00
Lionel Debroux 51d6a08d57 msvcrt: Test more offsets for _aligned_offset_realloc (especially offset > alignment). 2007-11-28 13:52:22 +01:00
Lionel Debroux 68b1f2cde2 msvcrt: Fix memory leak (found by Smatch). 2007-11-26 13:07:30 +01:00
Michael Stefaniuc daf1ed48c3 msvcrt/tests: Remove redundant NULL check before free(). Found by Smatch. 2007-11-19 13:02:06 +01:00
Stefan Dösinger a529ef4875 msvcrt: Implement _mbsnbcpy_s. 2007-11-16 15:07:55 +01:00
Stefan Dösinger 9582f5c719 msvcrt: Implement strcat_s. 2007-11-16 15:07:26 +01:00
Stefan Dösinger 18daed62ed msvcrt: Implement strcpy_s. 2007-11-16 15:06:52 +01:00
Dan Kegel a1e4758f07 msvcrt: Fix two buglets in heap test. 2007-11-07 13:21:35 +01:00
Mikolaj Zalewski 1f632a29ce msvcrt/tests: Loosen the mbctype test to pass under Windows 9x and NT 4.0. 2007-10-29 12:02:56 +01:00
Lionel Debroux efebe8b29b msvcrt/tests: Fix memory leak (found by Smatch). 2007-10-26 14:03:47 +02:00
Alexandre Julliard 49864b084d msvcrt: Fix demangling of function pointers by maintaining the left/right distinction for type references. 2007-10-10 19:52:16 +02: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
Karl Relton 260fd8a4a9 msvcrt: New implementation of fcvt. 2007-09-25 12:37:32 +02:00
Mikolaj Zalewski 758539c8a3 msvcrt: Implement and test _mbsbtype. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 884d718c49 msvcrt: Test and fix _ismbslead and _ismbstrail. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 9a2d605dd9 msvcrt: Test and fix _mbsinc/_mbsninc. 2007-08-23 12:43:16 +02:00
Mikolaj Zalewski cf8cf1d7f9 msvcrt: Don't test codepage 20932. 2007-08-23 12:43:04 +02:00
Mikolaj Zalewski c5268a20ab msvcrt: Test and fix _mbccpy, _mbsncpy and _mbsnbcpy. 2007-08-23 12:42:54 +02:00
Mikolaj Zalewski 12ff6788b3 msvcrt: Test that some functions depends on locale codepage, not the one set by _setmbcp. 2007-08-21 13:00:41 +02:00
Mikolaj Zalewski cea1052f62 msvcrt: Test and fix _mbclen/_mbslen. 2007-08-21 13:00:33 +02:00
Mikolaj Zalewski 545f446bf3 msvcrt: Test and fix _mbsnextc. 2007-08-21 13:00:16 +02:00
Mikolaj Zalewski ba43c67f8f msvcrt: Implement _ismbblead/_ismbbtrail using _mbctype (with tests). 2007-08-21 13:00:06 +02:00
Mikolaj Zalewski ea824f830f msvcrt: Fill _mbctype table in _setmbcp. 2007-08-21 12:59:56 +02:00
Paul Vriens 56f4262e94 msvcrt/tests: Wait for spawned processes to finish. 2007-08-21 12:41:42 +02:00
Dmitry Timoshkov 1e5b131d7a msvcrt: Route mktime and localtime to glibc. 2007-08-21 12:41:35 +02:00
Mikolaj Zalewski e9ec5d4aff msvcrt: __mb_cur_max is not updated in _setmbcp (with testcase) and should not be used in _ismbblead. 2007-08-17 12:43:19 +02:00