Commit Graph

2228 Commits

Author SHA1 Message Date
Rob Shearman fc5b795f7c kernel32: Fix the GetComputerName* functions to not write to the buffer at all if there is not enough space.
Add tests for the GetComputerName* functions that show this issue.

Fix an off-by-one error in setting the size when there is not enough space.

Remove the exception handlers for GetComputerNameW,
GetComputerNameExA/W, since testing on XP SP2 shows that access
violations are not caught and these are not present on Win9x, which
does have an exception handler.
2007-02-16 13:13:17 +01:00
Marcus Meissner beb603e908 kernel32/tests: Fixed several uninitialized variables. 2007-02-09 12:07:14 +01:00
Misha Koshelev 12e3d642dd kernel32: CreateThread returns NULL on error, not INVALID_HANDLE_VALUE. 2007-02-06 20:23:12 +01:00
Francois Gouget 0271a09d4c Add missing '\n's in traces. 2007-02-06 13:20:59 +01:00
Damjan Jovanovic 07db8882c2 ntdll: Slist support.
Implemented ntdll's RtlInitializeSListHead, RtlQueryDepthSList,
RtlInterlockedFlushSList, RtlFirstEntrySList,
RtlInterlockedPushEntrySList, RtlInterlockedPopEntrySList, their
kernel32 equivalents, and tests.
2007-02-05 21:46:28 +01:00
Misha Koshelev d6d6ce299f kernel32: Added conformance test for nested thread wakeups in the server. 2007-02-05 18:07:24 +01:00
Detlef Riekenberg dc577ed685 kernel32/tests: GetVolumeNameForMountPoint not present before w2k. 2007-01-22 12:08:25 +01:00
Detlef Riekenberg 9b8f699a08 kernel32/tests: VirtualAllocEx not present in Win95. 2007-01-22 12:08:16 +01:00
Detlef Riekenberg fb9df99dc0 kernel32/tests: Fix a declaration and use skip for the message. 2007-01-22 12:08:13 +01:00
Alexandre Julliard 02e2fa7798 ntdll: Implementation of inter-process NtMapViewOfSection and NtUnmapViewOfSection. 2007-01-18 15:17:51 +01:00
Alexandre Julliard 8025f79ce1 ntdll: Implementation of inter-process RtlCreateUserThread. 2007-01-18 15:02:55 +01:00
Alexandre Julliard 1ea968016f ntdll: Implementation of inter-process VirtualProtectEx. 2007-01-15 22:30:04 +01:00
Alexandre Julliard 3d00239586 ntdll: Implementation of inter-process VirtualQueryEx. 2007-01-15 22:28:42 +01:00
Alexandre Julliard 7a00142bc1 ntdll: Implementation of inter-process VirtualAllocEx and VirtualFreeEx. 2007-01-15 22:27:40 +01:00
Alexandre Julliard 1db223954f server: Set the specified in/out buffer sizes on named pipes using SO_SND/RCVBUF. 2007-01-12 20:59:22 +01:00
Mike McCormack f01707dfc1 kernel32: Merge existing resources in EndUpdateResource. 2007-01-11 12:12:00 +01:00
Dmitry Timoshkov 13dfa9a711 kernel32: Do not forget to cleanup if the test is skipped. 2007-01-10 11:59:02 +01:00
Hans Leidekker 7918c59f86 kernel32: Add a stub implementation for GetVolumeNameForVolumeMountPoint{A, W}. 2007-01-09 12:46:37 +01:00
Mike McCormack 4d72d7897f kernel32: Implement EndUpdateResource for the case existing resources are deleted. 2007-01-09 12:22:21 +01:00
Paul Vriens aea09ade58 kernel32/tests: Prevent memory leak. 2007-01-08 21:13:54 +01:00
Dmitry Timoshkov 67568764e5 kernel32: Print more information about the reason of a test failure. 2007-01-08 12:52:52 +01:00
Dmitry Timoshkov 1e7ba7c2ce kernel32: Fix the file sharing test to pass cleanly under XP and Win9x. 2007-01-08 12:52:46 +01:00
Dmitry Timoshkov cda3968693 kernel32: Skip the VirtualAllocEx test under Win9x. 2007-01-08 12:51:40 +01:00
Francois Gouget 9299c4985e kernel32/tests: Replace some '#if 0's with 'if (0)'s.
Fix the code so it compiles without warnings.
2007-01-08 12:09:07 +01:00
Dmitry Timoshkov 3d01fc39aa kernel32: Skip the OpenProcess test under Win9x. 2007-01-08 11:46:05 +01:00
Dmitry Timoshkov f70fb8ec4c kernel32: GetTimeFormat and GetDateFormat should fail if LOCALE_NOUSEROVERRIDE is specified simultaneously with a format string. 2007-01-05 18:24:12 +01:00
Francois Gouget 14918e293a kernel32/tests: Use '%d' to print GetLastError(). 2007-01-04 11:26:22 +01:00
Mike McCormack b4bc2c3628 kernel32: Don't try update version resources with invalid data, as it fails on Windows 2003. 2007-01-04 09:56:00 +01:00
Rob Shearman 140a610e2a kernel32: Be more verbose about the expected and received values for failures in the resource function tests. 2007-01-04 09:50:25 +01:00
Thomas Kho f9cbc4c70d kernel32: Add CreateRemoteThread remote thread conformance tests. 2007-01-03 14:22:02 +01:00
Thomas Kho 91c7c7bf43 kernel32: Add VirtualAllocEx remote thread conformance tests. 2007-01-03 14:13:12 +01:00
Mike McCormack 9196a37201 kernel32: Store resources to be updated in a tree. 2007-01-03 11:54:41 +01:00
Dmitry Timoshkov 361ea6e4dc kernel32: Remove a line that was supposed to be deleted by the previous patch. 2007-01-02 20:31:15 +01:00
Mike McCormack 794dbe4f93 kernel32: Remove incorrect and incomplete implementation of BeginResourceUpdate. 2007-01-02 13:20:21 +01:00
Mike McCormack 1cd16ed7f3 kernel32: Add a short test for Begin/EndUpdateResource. 2007-01-02 13:20:11 +01:00
Dmitry Timoshkov ebd57713aa kernel32: Make the locale test pass without errors under XP SP2. 2007-01-01 17:15:27 +01:00
Paul Vriens bafefecaa2 kernel32/tests: Run tests on NT4 again. 2007-01-01 17:03:47 +01:00
Paul Vriens 85b52e5693 kernel32/tests: Moved ok-statement to the appropriate place. 2007-01-01 17:03:38 +01:00
Paul Vriens 83f071cf7b kernel32/tests: Move USE_EXTENDED_PRIORITIES outside the if-statement. 2007-01-01 17:03:30 +01:00
Michael Stefaniuc 5263b5ec24 kernel32/tests: In multiline strings there is no need for '\' at the end of the lines. 2006-12-27 13:10:03 +01:00
Dmitry Timoshkov efb1e8eb75 kernel32: Fix a typo. 2006-12-22 10:21:48 +01:00
Alexandre Julliard 9fed1205ca ntdll: File positions should be aligned to sector boundaries in PE loader. 2006-12-21 12:34:44 +01:00
Paul Vriens 11c186fbe7 kernel32/tests: Don't use full path for executable in tests. 2006-12-21 12:20:44 +01:00
Alexandre Julliard 2a1dc15790 ntdll: Fix the libdl refcount when loading the same builtin twice. 2006-12-20 15:54:27 +01:00
Francois Gouget 1d6db94ee2 kernel32/tests: Test loading and unloading of builtin dlls. 2006-12-20 15:48:22 +01:00
Dmitry Timoshkov 5fc9ffd500 kernel32: Add a minimal PE image that XP is able to load. 2006-12-19 12:38:56 +01:00
Francois Gouget 367f91fb5c Assorted spelling fixes. 2006-12-14 20:25:05 +01:00
Paul Vriens 96bc4517c3 kernel32/tests: Be a bit more verbose on failure. 2006-12-14 20:10:49 +01:00
Alexandre Julliard 3dc21d387b ntdll: Map the PE header up to the specified size, and clear the rest of the page. 2006-12-13 16:04:49 +01:00
Dmitry Timoshkov 64b2ca2573 kernel32: Add the data that mimics the PE image which upack creates. 2006-12-13 16:04:48 +01:00
Andrew Talbot bc3e7263bc kernel32/tests: Cast-qual warnings fix. 2006-12-11 12:15:44 +01:00
Dmitry Timoshkov 046814701e kernel32: Add PE images with section alignment 1 and 2 to the loader test. 2006-12-07 15:34:43 +01:00
Alexandre Julliard 94ac989534 ntdll: Fix the failing loader tests. 2006-12-07 15:34:36 +01:00
Alexandre Julliard 82218fcf20 kernel32/tests: Added LOCALE_NOUSEROVERRIDE flag on time tests that rely on AM/PM. 2006-12-07 12:33:55 +01:00
Detlef Riekenberg 44f663e8a4 kernel32/tests: Add tests for GetWindowsDirectory. 2006-12-06 11:27:18 +01:00
Detlef Riekenberg ef851bc6dd kernel32/tests: Add tests for GetSystemDirectory. 2006-12-06 11:27:08 +01:00
Alexandre Julliard 7cd9400b80 kernel32/tests: Added test case for . and .. directory entries. 2006-12-01 13:11:53 +01:00
Dmitry Timoshkov a411b85868 kernel32: Skip the PE loader test under a Win9x platform. 2006-12-01 12:28:31 +01:00
Dmitry Timoshkov 720ab29a7f kernel32: Add more obscure PE images that XP is able to load. 2006-11-28 12:35:56 +01:00
Dmitry Timoshkov f4b444249b kernel32: Improve the PE loader test. 2006-11-27 13:43:17 +01:00
Marcus Meissner 9e8b1259ca kernel32/tests: Test -1 length for NULL ptr too. 2006-11-24 11:50:36 +01:00
Detlef Riekenberg c8a12d0f62 kernel32/tests: Avoid crash on Win95 (GetLongPathNameW). 2006-11-20 11:50:15 +01:00
Detlef Riekenberg e33a6d61fe kernel32/tests: Load tests on Win9x again (VirtualAllocEx+VirtualFreeEx). 2006-11-20 11:50:15 +01:00
Dmitry Timoshkov a77d00eabb kernel32: Add a basic PE loader test. 2006-11-16 22:09:11 +01:00
Alexandre Julliard 6fa6cc7e83 kernel32/tests: Reserve some more memory for the environment. 2006-11-15 11:31:41 +01:00
Francois Gouget 4c9f668e7c kernel32: Fix the 'MAP_FOLDCZONE' ok() test. 2006-11-13 12:45:31 +01:00
Alexandre Julliard 91bb29ca4d kernel32/tests: Fixed the pipe test for MacOS. 2006-11-09 15:40:36 +01:00
Dmitry Timoshkov ecdfa08364 kernel32: Add basic OpenProcess test. 2006-11-08 20:16:12 +01:00
Francois Gouget 30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01:00
Alexandre Julliard 1f50b7f7eb kernel32/tests: Don't wait for overlapped result if the previous test failed. 2006-11-04 12:07:10 +01:00
Alexandre Julliard 98a3912e9f kernel32: Fixed behavior of FindFirstFile for DOS devices. 2006-10-31 12:05:19 +01:00
Ge van Geldorp d642e11438 winapi_test: Regenerate tests.
Remove structs from test list which have preprocessor directives in
their definitions (winapi_test can't handle that).
2006-10-11 12:12:21 +02:00
Michael Stefaniuc 8218440c20 kernel32/tests: Win64 printf format warning fixes. 2006-10-10 16:11:27 +02:00
Francois Gouget 17aa2c82d2 Add missing '\n's to ok() calls. 2006-10-03 15:56:16 +02:00
Louis. Lenders ed4b6e91cb kernel32: Add 2 simple tests for GetLongPathNameW. 2006-10-02 14:41:12 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Alexandre Julliard 489d87d1e5 kernel32: Renamed the kernel directory to kernel32.
Also get rid of the kernel/messages subdirectory.
2006-09-12 13:34:06 +02:00