Mike McCormack
fc51a2680a
Fix declaration warnings in the test cases.
2005-06-14 11:40:04 +00:00
Alexandre Julliard
c2d5b444b3
Moved the NONAMELESSUNION/STRUCT macros to wine/test.h so that they
...
can be used in all the test.
2005-06-13 12:10:54 +00:00
Uwe Bonnes
290a419f0a
Don't try to access floppy if it's not mounted.
2005-06-09 09:42:49 +00:00
Uwe Bonnes
80a84a8c74
Added more pipe tests.
2005-06-05 17:57:10 +00:00
Mike McCormack
6ef329fce7
Make sure that unused code gets compiled to avoid warnings.
2005-06-02 10:30:57 +00:00
Mike McCormack
bdfcb09c57
Some warning fixes for the regression tests.
2005-05-31 09:30:45 +00:00
Alexandre Julliard
70bc9f39f1
Removed STANDALONE ifdefs.
2005-05-25 09:54:51 +00:00
Pierre d'Herbemont
342da59b0c
Remove stdlib.h inclusion if winsock.h is included.
2005-05-18 15:33:20 +00:00
Francois Gouget
f5c9da6860
Assorted spelling fixes.
2005-05-06 15:44:31 +00:00
Mike McCormack
70d30cb54a
Tests for SignalObjectAndWait.
2005-04-24 17:37:52 +00:00
Stefan Leichter
e41bd72afc
Exclude crashing CreateFileW test on NT4.
2005-04-19 11:59:46 +00:00
Eric Pouech
b461ddeb2d
Copied the atom tests for global atom so that we can test local atoms
...
too.
2005-04-18 15:47:18 +00:00
Mike McCormack
d6fdac2676
Calculate the size of the next mailslot message correctly.
2005-04-11 16:11:32 +00:00
Rein Klazes
7308f16b32
Fix some incorrect uses of the ok macro where the result depends on
...
the evaluation order of its arguments.
2005-03-31 19:07:08 +00:00
Mike McCormack
2ab6a775bd
Implement mailslots.
2005-03-30 19:02:15 +00:00
Peter Berg Larsen
e732fc023d
Janitorial: Get rid of strncpy/strncpyW.
2005-03-28 14:17:51 +00:00
Mike McCormack
6c42be25e7
Implement CreateMailslot using NtCreateMailslotFile.
2005-03-28 10:03:56 +00:00
Jakob Eriksson
40224b6ebc
Remove tests that fail badly on Windows 98.
2005-03-28 10:00:25 +00:00
Jakob Eriksson
ec6f9ad356
Fix thread affinity test for SMP machines.
2005-03-25 10:25:11 +00:00
Alexandre Julliard
37698099d9
Take into account the more correct behavior of recent Linux kernels.
2005-03-24 19:05:02 +00:00
Alex Villacís Lasso
38a03ca6c8
Test for PeekNamedPipe with zero-length buffer.
2005-03-23 11:58:32 +00:00
Alexandre Julliard
3ea748b7c8
Fetch again the file time to compare against to avoid rounding errors.
2005-03-22 21:14:51 +00:00
Jakob Eriksson
195d4018aa
Abort if we can't create a named pipe at all.
2005-03-22 21:14:00 +00:00
Jakob Eriksson
c515a306e6
If the variable does not exist, just return.
2005-03-22 18:17:07 +00:00
Jakob Eriksson
caf7aefc65
Fix patching error in file time test.
2005-03-22 16:44:57 +00:00
Jon Griffiths
dbf222f3aa
Use LMEM_ flags for LocalAlloc(), not GMEM_ (GlobalAlloc).
2005-03-17 20:53:37 +00:00
Dmitry Timoshkov
75b93ff1aa
Match OVERLAPPED structure to the SDK definition.
2005-03-17 19:00:08 +00:00
Jakob Eriksson
7676e9b868
More trace info.
2005-03-17 18:54:31 +00:00
Jakob Eriksson
534cf2334f
Fix broken test.
2005-03-16 19:49:57 +00:00
Jakob Eriksson
16ff109b0f
More trace info.
2005-03-15 19:33:32 +00:00
Uwe Bonnes
a12c6b662d
Test for %Systemroot%.
2005-03-10 17:15:39 +00:00
Huw Davies
00ced5e3af
Fix regression in GetPrivateProfileSection for lines without an '='.
...
Add test.
2005-03-04 10:46:55 +00:00
Francois Gouget
fbb3343547
Assorted spelling fixes.
2005-03-02 13:53:50 +00:00
Alexandre Julliard
d0ee9f9309
Avoid spaces before preprocessor directives, that's not portable.
2005-03-02 12:23:20 +00:00
Jakob Eriksson
a604415468
Accept (shorter) date format in Win NT and Win 95.
2005-03-02 10:11:22 +00:00
Rein Klazes
4c5832ba65
When enumerating keys using Get(Private)ProfileString do not include
...
lines without an '=' character. Added a test that shows the behavior.
2005-03-02 10:08:18 +00:00
Dmitry Timoshkov
405367a44a
Add another test case for file sharing.
2005-03-01 10:42:04 +00:00
Francois Gouget
4d801b66e6
Assorted spelling fixes.
2005-02-10 19:19:35 +00:00
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