Commit Graph

110 Commits

Author SHA1 Message Date
Alexandre Julliard f93256a56c Warning fixes. 2003-08-06 22:08:04 +00:00
Jon Griffiths 7d75c147a2 Fix MSVC warning. 2003-07-19 03:06:19 +00:00
Dmitry Timoshkov 62efd98687 Exit ealier from LCMapStringA in the case of LCMAP_SORTKEY.
Don't rely on computing string length by MultiByteToWideChar in
CompareStringA, do it manually.
2003-07-03 18:09:03 +00:00
Dmitry Timoshkov 380a505bcd Add tests for NORM_IGNORENONSPACE and NORM_IGNORESYMBOLS in the
LCMapString(LCMAP_SORTKEY) branch.
2003-06-30 21:06:12 +00:00
Dmitry Timoshkov 85d4281616 Implement LCMapString using unicode collation tables.
Move CompareString and LCMapString to dlls/kernel/locale.c.
2003-06-27 19:02:23 +00:00
Eric Pouech 30504fbd66 Added a small test for process exit code retrieval. 2003-06-26 02:05:40 +00:00
Eric Pouech 412d37f6e6 - adapted kernel32 so that it no longer (directly) manages console
handles as wineserver handles
- console input handle object is no longer waitable (input record
  synchronisation is now implemented as a simple semaphore), and removed
  FD_TYPE_CONSOLE from fd types in wineserver
- console handles now always have their two lower bit set so one can
  distinguish a console handle from a kernel object handle
- implemented some undocumented kernel32 console related APIs
  (CloseConsoleHandle, GetConsoleInputWaitHandle, OpenConsoleW,
  VerifyConsoleIoHandle, DuplicateConsoleHandle)
- allowed a few kernel32 APIs to take console pseudo-handles
  (FlushFileBuffer, GetFileType, WaitFor*Object*)
- simplified the console inheritance at process creation
- in console tests, no longer create a console if one already exists
2003-06-21 02:07:10 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Francois Gouget c5f775a9c7 Typos/spelling fixes. 2003-06-18 03:30:39 +00:00
Eric Pouech 9d0fa2f02e - kernel32's environment tests: a few more tests now succeed
- added some console related tests to process creation
- added a few more test cases to the ntdll environment tests
2003-06-18 03:24:20 +00:00
Gerald Pfeifer c862085b90 Avoid "might be used uninitialized" warning in exercizeServer(). 2003-05-21 18:23:20 +00:00
Alexandre Julliard 11c159666e Use the trace macro for debugging output. 2003-05-20 03:58:35 +00:00
Ferenc Wagner 18f7bfb42e New _lcreat tests for filename ending in a slash and volume label
attribute.
2003-05-19 21:50:32 +00:00
Dan Kegel cee5576012 More named pipes tests. 2003-05-15 22:52:41 +00:00
Mike McCormack ef8b94622a - rewrite of the named pipe code
- allow NtFileFlushBuffers to wait
- allow DisconnectNamedPipe to invalidate client cached fd
- fix the pipe test now that one extra test passes
2003-05-15 04:22:45 +00:00
Alexandre Julliard 9c40e91b70 Make the test pass on NT4 too. 2003-05-13 23:40:51 +00:00
Francois Gouget e8c2ac2d9d Added a test for GetLongPathNameA("c:").
Added a test for GetFullPathNameA("c:").
Fix a number of messages that referred to GetLongPathName instead of
GetFullPathName.
2003-05-13 22:30:38 +00:00
Dimitrie O. Paun 4ca5685c9c Make sure winsock.h gets included before stdlib.h. 2003-05-13 04:48:23 +00:00
Eric Pouech cd0f2bcfdd Added a set of tests for the console API. 2003-05-13 04:46:54 +00:00
Francois Gouget f803e2a92d Fix miscellaneous spelling errors and typos. 2003-05-13 00:41:57 +00:00
Uwe Bonnes 0de21b651e FindFirstFile on root directory should fail. 2003-04-17 02:10:04 +00:00
Alexandre Julliard ce61349334 Implemented file locking functions (partly based on my old Corel
patch). Added a few regression tests.
2003-03-18 05:04:33 +00:00
Alexandre Julliard a67d999da9 Warning fixes. 2003-03-14 04:02:28 +00:00
Stefan Leichter 2f10ca5237 Added tests for GetPrivateProfileInt. 2003-03-04 04:34:57 +00:00
Dan Kegel 513ab31f43 Now compiles on windows. Added a couple more checks. 2003-02-25 03:56:43 +00:00
Alexandre Julliard 1e80f30842 Added pipe.ok. 2003-02-19 23:30:39 +00:00
Dan Kegel 88eba44645 Added check for illegal pipe names.
Added regression test.
2003-02-19 22:06:36 +00:00
Alexandre Julliard b7a8eefb2b Authors: Francois Gouget <fgouget@free.fr>, With help from Enio Schutt Jr <enio.s.jr@operamail.com>
Skip the overlapped I/O tests on files on Win9x.
2003-02-11 22:11:56 +00:00
Francois Gouget 2a56437f72 {Get,Set}ThreadPriorityBoost are stubs on Win98. 2003-01-20 23:26:09 +00:00
Bill Medland 37bbb1c26e Correct GetDateFormat handling of uninitialised fields: only the year,
month and day fields matter; the rest may be uninitialised.
2003-01-16 00:18:34 +00:00
Francois Gouget 9b0b1e078a Remove (POINTER)NULL casts. 2003-01-14 23:43:41 +00:00
Eric Pouech a2534ca00f Added tests for environment variables, debug and suspend flags. 2003-01-13 18:28:43 +00:00
Chris Morgan 761dc0d626 Use the locale id we created instead of the system or user default,
otherwise some tests are broken on systems where things aren't
english/us.
2003-01-02 17:47:22 +00:00
Francois Gouget 979770b1ca On Win9x "hi\n" gives us "hi\r\n". 2002-12-19 21:12:48 +00:00
Chris Morgan 8bf2c059bc Add additional tests for GetTimeFormat() and GetDateFormat().
Uncomment wine_todo tests that now succeed with fixes to
GetTime/DateFormat().
2002-12-19 21:12:09 +00:00
Francois Gouget 305ead6205 Declare LocalDiscard and GlobalDiscard (used by kernel/tests/alloc.c)
Remove the DISCARD_DEFINED #ifdefs.
Remove another double HeapFree (caused an assert when run on NT4),
and a HeapSize on a freed heap (the test failed on Win9x).
Fix the LocalLock/LocalUnlock tests (the memory must be allocated
with LMEM_MOVEABLE otherwise the tests don't make sense).
Remove many unnecessary casts.
Improved error reporting somewhat.
2002-12-19 01:03:48 +00:00
Francois Gouget 4b1479c990 Improve error reporting. 2002-12-18 20:52:00 +00:00
Francois Gouget 52614c62e4 All filenames containing a ":" are invalid on Win9x and 2000 but are
valid on NT4 -> remove these tests.
2002-12-18 20:51:48 +00:00
Francois Gouget 4f38047987 #ifdef-out decodeW since it is not used yet.
Fix the lpDesktop and lpTitle checks on NT platforms.
2002-12-18 20:51:33 +00:00
Francois Gouget 45d261374c Use strlen or lstrlenA as appropriate to avoid signed/unsigned
warnings.
2002-12-18 02:22:51 +00:00
Francois Gouget b42b9ddb73 Mention the applications that depend on the behavior checked by the
GetLocaleInfoA partial buffer test.
2002-12-12 22:25:23 +00:00
Francois Gouget f73e00873c Don't test whether Get{Currency,Date,Number,Time}FormatA writes as
much as possible in the buffer even if it is too small. This is
undocumented and does not match the Win9x behavior.
Skip Unicode tests on Win9x.
Fix usage of memset/sizeof/COUNTOF.
Fix signed/unsigned warnings (in MSVC) by using lstrlenA instead of
strlen.
2002-12-12 03:56:09 +00:00
Francois Gouget 50c433bba9 Skip the Unicode tests on Win9x.
Test Get{System,Windows}Directory{A,W}(NULL, 0). This is a more
standard way to get len_with_null too.
Adapt the error code checks to take into account variations between
Win9x and NT.
2002-12-12 03:54:23 +00:00
Francois Gouget e948ad1fc7 Fix the error codes returned by DeleteFile{A,W} to match NT.
Adapt the DeleteFileA error code checks to take into account variations
between Win9x and NT.
Test DeleteFile(NULL).
Add tests for DeleteFileW.
On NT, calling _lclose on an already closed handle will cause memory
corruption and thus sometimes crash -> removed the relevant test.
Skip the Unicode tests when on Win9x.
2002-12-12 03:54:01 +00:00
Francois Gouget 3773035a6d The Win9x platforms support WideCharToMultiByte and
MultiByteToWideChar but not lstrcmpW! So I implemented our own so
that we can have a meaningful test.
2002-12-12 02:16:29 +00:00
Francois Gouget d705b7c019 '"' is an illegal character on Win9x so we cannot test it.
GetShortPathNameA behaves differently on Win9x and NT: on NT it
succeeds even if not all path components exist, as long as they are
already in the 8.3 format.
Wine apparently implements the NT behavior thus many todo_wine went
away.
Fixed some error code checks to take into account all possible return
values.
GetTempFileNameA appears to only use the lower 16bits of the id on
Win95 (and never returns more than 16 bits on other platforms).
GetLongPathNameA is missing on some Windows versions.
Modified the GetTempPath tests to make sure they return the expected
value. Removed the redundant tests (e.g. if buf[0]==0 then buf!="foo",
no need to test both).
The 'len_with_null - 1' case is not testable as the Windows behavior
varies too much between versions.
We cannot check whether Windows touches the buffer either as this
heavily depends on the Windows version and specific circumstances of
the call.
Finally NT4 sometimes exaggerates the required buffer size.
2002-12-11 00:16:31 +00:00
Francois Gouget d2667a4ce3 Removed unnecessary HANDLE typecasts. 2002-12-02 18:10:57 +00:00
Francois Gouget 952407b1e0 {Get,Set}ThreadPriorityBoost and SetThreadIdealProcessor are missing
on Win95 -> use GetProcAddress.
Cleanup the handling of OpenThread.
Check SuspendThread after a thread terminates (needed by Ipix).
Remove unnecessary version checks (check for
ERROR_CALL_NOT_IMPLEMENTED and similar instead).
Cleanup casts, signed/unsigned comparisons.
2002-11-30 19:03:19 +00:00
Francois Gouget f465a8d658 GetDiskFreeSpace(all NULLs) crashes on NT4 -> removed.
GetDiskFreeSpace("." | "..") fails on Win98 and NT4 but succeeds on XP
-> removed.
Skip the GetDiskFreeSpace tests on floppy drives because NT pops up a
MessageBox if no floppy is present.
Fix the error code checks to take into account the differences between
Win9x, NT4 and XP.
Skip the unicode tests if the first call returns
ERROR_CALL_NOT_IMPLEMENTED.
Whenever a test fails, print sufficient information (typically return
code and GetLastError()!) to let the developer figure out what is
wrong.
2002-11-30 19:02:53 +00:00
Francois Gouget 3475b9edc9 SetEnvironmentVariableA(NULL, NULL) crashes on Win98 -> removed.
SetEnvironmentVariableA("", value) crashes on NT4 -> removed.
The behavior of SetEnvironmentVariableA("", "") varies to much ->
removed.
Test the behavior of SetEnvironmentVariable{A,W}(name, "") taking into
account the differences between Win9x and NT.
Test the behavior of GetEnvironmentVariable{A,W}(name, buf, 0).
Fix the error code checks to take into account the differences between
Win9x, NT4 and XP.
Skip the unicode tests if the first call returns
ERROR_CALL_NOT_IMPLEMENTED.
Whenever a test fails, print sufficient information (typically return
code and GetLastError()!) to let the developer figure out what is
wrong.
2002-11-30 19:02:22 +00:00