Commit Graph

267 Commits

Author SHA1 Message Date
Rémi Assailly 193d527736 char -> const char fixes. 2005-01-28 14:02:52 +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
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Francois Gouget 6fb1a20020 Assorted spelling fixes. 2004-12-20 19:27:06 +00:00
Eric Pouech 4056d7ef8c Fixed some errors in function prototypes. 2004-12-13 21:19:01 +00:00
Alexandre Julliard ebe3c529b1 Janitorial: C booleans must not be compared against TRUE. 2004-12-09 14:07:59 +00:00
Gunnar Dalsnes 3f884c2c7e Added a test to make sure that CreateDirectoryA/W does not create
multiple non-existing directories in the path given.
2004-11-29 17:52:06 +00:00
Dmitry Timoshkov e04da6bb72 Add a test for ReadFile/WriteFile fault handling, make it pass under
Wine.
2004-11-28 14:58:11 +00:00
Kevin Koltzau 1b8a8b26af Prevent environment test from crashing when environment is large. 2004-11-22 18:28:56 +00:00
Dmitry Timoshkov c590a66f89 Call CompareStringA with LOCALE_USE_CP_ACP flag set from lstrcmpA and
lstrcmpiA in order to improve speed. Add a test case confirming that
CompareString and LCMapString accept LOCALE_USE_CP_ACP.
2004-11-21 15:47:24 +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
Robert Shearman 84eaaa168f Fix broken thread start routines. 2004-11-03 22:18:44 +00:00
Stefan Leichter ddae31893d Set the correct last error in EnumUILanguagesA, with tests. 2004-11-01 21:06:28 +00:00
Rein Klazes cfeef723d2 - Simplify the calculation in TIME_DaylightCompareDate;
- Expand the number of applicable test cases.
2004-10-29 21:27:18 +00:00
Mike McCormack d581777c88 Add some tests for time conversion functions. 2004-10-26 22:03:11 +00:00
Rein Klazes 4cf122d2aa Correctly use the return value of GetTimeZoneInformation. 2004-10-26 00:11:43 +00:00
Ferenc Wagner cbf4c5c650 Unconditionally open a fresh console for the tests. 2004-10-08 23:35:47 +00:00
Eric Pouech e780ea5230 Fixed (finally) ScrollConsoleScreenBuffer implementation. 2004-09-13 18:04:50 +00:00
Rein Klazes bb2796f9aa Add tests of TzSpecificLocalTimeToSystemTime and
SystemTimeToTzSpecificLocalTime.
2004-09-10 19:35:16 +00:00
Alexandre Julliard 0e3df810de Comment out an unreliable test. 2004-09-09 20:16:23 +00:00
Francois Gouget 3af8a1e16f Set _WIN32_WINNT to 0x0501 so we get the definition of
PTIMERAPCROUTINE from the Windows headers.
2004-09-08 19:06:07 +00:00
Eric Pouech 440ad8ccf2 - ctrl-c enabling flag is now inherited
- fixed console-related fields in RTL_USER_PROCESS_PARAMETERS
- various clean-up in kernel32.SetConsoleCtrlHandler
- only send a console event once to a process and not to all the
  process' threads
2004-09-08 01:25:05 +00:00
Mike McCormack b6b3fe10d6 Add a test for timers. 2004-09-07 23:28:32 +00:00
Francois Gouget 5512ae2685 Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
2004-09-06 20:29:53 +00:00
Filip Navara c880c41f7a - Don't expect that drive C: exists, use the drive Windows is
installed on instead.
- Remove misleading message about file mapping.
2004-08-30 18:40:20 +00:00
Francois Gouget 20b8b56d5f Enable the disabled tests in tests.data or add a comment describing
why the type cannot be tested.
Update the generated files, they compile and run successfully both on
Windows (with the Windows headers) and in Wine.
2004-08-25 00:42:50 +00:00
Francois Gouget 2e360b3ee4 Fix alignment issues for MEMORYSTATUSEX, WIN32_STREAM_ID and
IO_COUNTERS. The corresponding tests now succeed both when compiled
with the Windows headers and when compiled with the Wine headers.
2004-08-24 20:16:25 +00:00
Francois Gouget 68232c6c2f Remove types that don't exist from tests.dat.
Don't test types that have a platform dependent layout.
Don't test Wine-only types.
Helps get the generated tests compiling on Windows.
2004-08-19 20:34:42 +00:00
Robert Shearman eee6adc9b6 - Errors should only be reported to I/O completion routine after
NtReadFile has succeeded.
- Test case for this behaviour.
2004-08-19 02:34:51 +00:00
Hans Leidekker 70d400adf6 Fix signed/unsigned comparison warnings. 2004-08-09 23:42:19 +00:00
Mike Hearn 850dcad17d Make STARTUPINFO.lpDesktop tests pass on NT. 2004-07-20 01:20:50 +00:00
Mike Hearn 95012151f9 Correct error code returned by CreateFile when given a non-existent
VxD on NT, add a test case.
2004-07-06 21:31:24 +00:00
Stefan Leichter de16a00fa5 Fix the GetPrivateProfileIntA tests for the win9x platform. 2004-06-17 23:00:54 +00:00
Alexandre Julliard 9cb122c2ef Added a couple of tests for SetCurrentDirectoryA. 2004-06-17 04:26:59 +00:00
Francois Gouget 497709b9bb Assorted spelling and case fixes. 2004-06-15 20:26:45 +00:00
Dimitrie O. Paun f28155de3f In Win9x, {Create,Remove}Directory returns ERROR_PATH_NOT_FOUND when
given directories containing '*' or '?'.
2004-06-04 17:59:05 +00:00
Dimitrie O. Paun b395a0c560 Win9x does not convert FIXED to MOVEABLE. It also discards locked
memory.
2004-06-04 17:58:49 +00:00
Robert Reif 55b57417e1 I got the test for failure on NT wrong in my last patch. The function
returns 0 on error and sets last error to ERROR_INVALID_FLAGS.
2004-06-03 23:19:27 +00:00
Dimitrie O. Paun 6e28fe7144 Do not fix the drive letter to 'C', it fails on other people's boxes. 2004-06-02 00:36:36 +00:00
Robert Reif 4751ff2b44 NT 4.0 doesn't support MAP_EXPAND_LIGATURES so skip test if it returns
ERROR_INVALID_FLAGS.
2004-05-30 03:11:24 +00:00
Dmitry Timoshkov b6dae78bac Avoid a failure under Win9x. 2004-05-25 00:20:50 +00:00
Dmitry Timoshkov d8a59cdfd5 Explicitly specify name of the pipe in the pipe test. 2004-05-24 19:06:52 +00:00
Dmitry Timoshkov 8811628cff Add a test for opening an already opened file for writing in a not
compatible sharing mode.
2004-05-22 03:14:17 +00:00
Alexandre Julliard eb04fd22f8 Converted the memory views list to use the standard functions from
wine/list.h.
Restructured some functions to always return proper NT status codes.
A couple of optimizations.
Added a few tests for file mappings.
2004-05-21 20:58:44 +00:00
Alexandre Julliard 16fe224275 Don't use the Wine debug functions.
Fixed wrong A/W length checks.
2004-05-20 01:19:05 +00:00
Eric Pouech df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +00:00
Alexandre Julliard 3c3d23063c Fixed some of the GetShortPathName tests to use the short version of
the current directory where needed.
2004-05-14 04:55:28 +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
Alexandre Julliard db50578ddc Avoid killing threads with TerminateThread, this can cause deadlocks. 2004-05-04 00:43:46 +00:00
Alexandre Julliard a11b2bbafb Updated the auto-generated tests. 2004-05-04 00:41:11 +00:00
Jakob Eriksson 7874ce53bd Prevent from crashing/hanging in Windows 95 OSR2. 2004-05-03 20:07:24 +00:00
Jakob Eriksson c49b9485df Fixed tests to succeed on all Windows versions. 2004-04-28 03:52:02 +00:00
Alexandre Julliard 115862146a Removed todo_wine from some tests that succeed now. 2004-04-27 02:27:47 +00:00
Duane Clark d6c537b43c Add testing of PeekNamedPipe, multiple writes, and message mode. 2004-04-26 23:30:51 +00:00
Jakob Eriksson 960104b249 When the Windows directory was something else than C:\WINDOWS
test_GetTempFileNameA() failed.
2004-04-22 23:44:14 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Alexandre Julliard 743997fa38 Replace the get_file_info request by an fstat() on the client side. 2004-04-08 04:39:59 +00:00
Lionel Ulmer 91d63c0cb6 Add better NULL checks to lstrcmp[i](A/W) functions. 2004-04-05 20:14:33 +00:00
Alexandre Julliard c4c4da4e07 Reimplemented DeleteFile by using CreateFile with
FILE_FLAG_DELETE_ON_CLOSE. Added/fixed a few tests.
2004-04-03 00:05:24 +00:00
Alexandre Julliard 74bd1e47ed Check file sharing permissions based on the file inode instead of the
file name.
Added regression test for sharing permissions.
2004-03-27 20:48:42 +00:00
Uwe Bonnes bb2724eaba Added tests for time functions. 2004-03-22 21:12:02 +00:00
Alexandre Julliard 8f032165c4 Reimplemented FindFirstFile/FindNextFile on top of
NtQueryDirectoryFile.
2004-03-17 20:57:09 +00:00
Alexandre Julliard 589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Dmitry Timoshkov d40ec6f8a2 Fix a couple of copy/paste errors. 2004-02-10 20:07:56 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Dmitry Timoshkov f323d5d31b Add a test case for Virtual* APIs, fix a few bugs discovered by it. 2004-02-09 20:58:16 +00:00
Dmitry Timoshkov 13081af50a Allow compilation with MSVC. 2004-02-09 20:48:12 +00:00
Bill Medland 8d94d1925d Correct GetNumberFormat for negative numbers with e.g. 3 leading
digits.
2004-02-07 01:28:45 +00:00
Francois Gouget afd3c257bd Add trailing '\n's to ok() calls. 2004-02-06 05:24:34 +00:00
Hans Leidekker ff49652ef6 Improved error reporting.
Add some notification types and a test.
2004-02-05 01:45:58 +00:00
Francois Gouget ce7c3b50ac Add trailing '\n's to ok() calls. 2004-01-27 20:13:03 +00:00
Francois Gouget e18aa3f614 Add trailing '\n's to ok() calls. 2004-01-26 20:23:25 +00:00
Francois Gouget 47e116225a Add trailing '\n's to ok() calls. 2004-01-23 20:50:35 +00:00
Francois Gouget 7494b5b980 Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
2004-01-23 02:11:12 +00:00
Francois Gouget f229c911b5 Add trailing '\n's to ok() calls. 2004-01-23 02:10:33 +00:00
Mike Hearn 517248d7bc - Ensure we correctly add a backslash like Windows 98/XP do.
- Generate filenames that look like Windows does (no left digit
  padding).
2004-01-16 04:49:13 +00:00
Mike McCormack 41e25208b2 Preserve trailing backslashes in GetFullPathName. 2004-01-15 01:48:44 +00:00
Eric Pouech 9ccb73a8d7 Reimplemented Get{Short|Long}PathName and updated the regression
tests.
2004-01-15 00:20:46 +00:00
Mike McCormack f7b47f7a5c Regression test for files with zero length. 2004-01-09 00:34:37 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Hans Leidekker 513670551b MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS. 2003-12-15 20:15:20 +00:00
Hans Leidekker 9f12d22657 [Global|Local]ReAlloc don't fail with size 0.
Fixed typos.
2003-12-15 19:51:17 +00:00
Hans Leidekker 7499242fd3 Include tests for MoveFile[W|A]. 2003-12-08 22:21:20 +00:00
Hans Leidekker c9d42291e8 Deal with kernels that don't have IsValidLanguageGroup.
Deal with non-implemented FoldString[A|W].
2003-12-08 22:20:44 +00:00
Hans Leidekker 2402f21b41 Check for ERROR_CALL_NOT_IMPLEMENTED error from RemoveDirectoryW. 2003-12-08 22:20:25 +00:00
Dimitrie O. Paun 4c90416d40 More tests for {Local,Global}{,Re}Alloc() calls.
Cleanup of the Heap*() tests.
2003-12-04 21:52:52 +00:00
Dimitrie O. Paun c762f5d7af RtlHeapReAllocate() should not allocate memory.
Add small test to make sure it doesn't return.
Don't import ntdll for tests, we need to load it dynamically.
2003-11-25 01:02:02 +00:00
Dmitry Timoshkov 33f9dcb1f9 Move CompareString implementation to libwine_unicode, add a bunch of
CompareString tests.
2003-11-22 00:00:53 +00:00
Hans Leidekker af7e65b46d Account for the fact that the temporary directory may expand to a long
name.
2003-11-18 20:39:34 +00:00
Francois Gouget 6768ecb6c1 Scale the buffer sizes with MAX_LISTED_ENV_VAR.
Add a note about the limited buffer size used by the *Profile functions.
Fix a couple of spelling errors.
2003-11-18 19:38:51 +00:00
Francois Gouget ed27249038 Fixed buffer overflow.
Fixed two -Wwrite-strings warnings (but there are more).
2003-11-09 00:30:36 +00:00
Mike McCormack 0b28472010 Added a test for mailslots. 2003-10-30 23:24:12 +00:00
Francois Gouget f405629e8e Weekly spelling fixes. 2003-10-28 21:45:30 +00:00
Jon Griffiths 13a5d6e627 Added tests for FoldStringA/W. 2003-10-24 00:26:18 +00:00
Ferenc Wagner 4b28f0f9c6 Account for unique NT4 behaviour.
Better error message.
2003-10-21 23:42:50 +00:00
Francois Gouget 224063f033 Some spelling fixes.
Fix the case of WineHQ.
2003-09-29 20:20:53 +00:00
Jon Griffiths 90535ce905 Various test fixes for XP/msvc. 2003-09-25 20:29:40 +00:00
Jon Griffiths 14b215a478 More locale tests. 2003-09-24 18:52:39 +00:00
Jon Griffiths ab58bf179b More tests for kernel NLS functions.
Use LOCALE_NOUSEROVERRIDE where appropriate.
2003-09-17 22:40:07 +00:00
Rolf Kalbermatter fddc4ec7b4 Fix another error under Win9x (hopefully). 2003-09-17 04:18:09 +00:00