Alexandre Julliard
b23ab91e66
kernel32/tests: Avoid sizeof in a trace.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 16:42:45 +09:00
Stefan Leichter
cfaca5ea5c
kernel32/tests: Add tests for GetSystemPreferredUILanguages.
...
Signed-off-by: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 23:00:54 +09:00
Francois Gouget
aea94f5134
kernel32/tests: Declare childPrintf() as a printf-style function.
...
And fix the corresponding warnings.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:36 +09:00
Francois Gouget
f6dc7c88ba
kernel32/tests: Help the tests portably declare printf()-syle functions.
...
To do so they can now use the WINETEST_PRINTF_ATTR() macro.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:33 +09:00
Sebastian Lackner
dfe42ca506
kernel32: Clamp maximum console window size to screen buffer size.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:31 +01:00
Hugh McMaster
c3ea629f3c
kernel32/tests: Add tests for GetLargestConsoleWindowSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:08:02 +01:00
Hugh McMaster
b36cc985a4
kernel32/tests: Refresh the console to clear the console font table.
...
The testScreenBuffer function unintentionally causes the console font
table to increase from 14 entries to about 40.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:45 +01:00
Nikolay Sivov
ae1fe69e39
kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:29 +01:00
Nikolay Sivov
c9c138f53f
ntdll/tests: Some tests for NtQuerySystemInformationEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:20 +01:00
Jeremy White
7dea64279e
kernel32: Revise GetLongPathNameA to avoid overriding the input on long names.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:57 +01:00
Jeremy White
ee1260e0d2
kernel32/tests: Test GetLongPathNameA when the file name case differs from the input.
...
This shows that the original buffer is unmodified if the filename is long,
but the actual file name is returned when the filename is short.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:35 +01:00
Jeremy White
9f3f918f2c
kernel32: Preserve a '/' delimiter in GetLongPathName and GetShortPathName.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:55:36 +01:00
Jeremy White
17ddd0474f
kernel32/tests: Add a test for GetShortPathName using a slash delimieter.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:57 +01:00
Jeremy White
60836b41fa
kernel32/tests: Add tests for GetLongPathName using a slash delimiter.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:48 +01:00
Jeremy White
440030b938
kernel32: Advance over the input buffer when stripping ./.
...
This is the same fix for GetLongPathName that was contained in a fix for
GetShortPathName in commit 9178d037d7
.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:36 +01:00
Jeremy White
81ccc7b816
kernel32/tests: Add path tests for the ./../foo case.
...
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:30 +01:00
Sebastian Lackner
a0b6bf86f7
kernel32/tests: Add test for process object destruction.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:07 +01:00
Nikolay Sivov
fe2f86e934
kernel32/tests: Some tests for ZombifyActCtx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:16:52 +01:00
Sebastian Lackner
6cf682d207
kernel32/tests: Remove unnecessary call to GetExitCodeProcess in process tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:10 +01:00
Sebastian Lackner
0346040889
kernel32/tests: Add tests for committing stack guard pages.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Joachim Priesner
ceb57b7817
kernel32/tests: Add tests for GetDriveType with invalid drive spec.
...
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:32 +09:00
Andrey Gusev
8bfc9bd2ee
Assorted typos fixes.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Sebastian Lackner
9f18d217a7
kernel32/tests: Avoid busy-looping in APC deadlock tests.
...
Spotted by Amine Khaldi.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:20 +09:00
Sebastian Lackner
46a208d6fa
kernel32/tests: Add tests for calling wait functions with pseudo handles.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:16 +09:00
Alexandre Julliard
9ae90b354c
kernel32/tests: Avoid testing the D: drive which may not exist.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-24 00:25:02 +09:00
Sebastian Lackner
ace9d329e9
server: Fix crash when calling SetNamedPipeHandleState on partially closed pipe.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner
ee02530bc4
server: Fix crash when calling GetNamedPipeHandleState on partially closed pipe.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner
78948b24b7
kernel32/tests: Add tests for calling WriteFile on pipe when other end is closed.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Sebastian Lackner
e235b0670d
kernel32/tests: Add tests for sending empty message in combination with CloseHandle.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Adam Martinson
563865c654
kernel32/tests: Add tests for closing named pipes with CloseHandle.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:14 +09:00
Hugh McMaster
11669fa5e2
Assorted spelling and grammar fixes.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Sebastian Lackner
71581f71d5
kernel32: DeleteFile should open the file without read/write permissions.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner
4857f95803
server: Return STATUS_CANNOT_DELETE when trying to open readonly file with FILE_DELETE_ON_CLOSE.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner
c74bb13d2e
kernel32/tests: Add some more tests for opening a file with FILE_DELETE_ON_CLOSE.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:21 +09:00
Nikolay Sivov
49e5b9c2a4
kernel32: Added support for TIME_NOSECONDS, restructured EnumTimeFormats implementation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:11 +09:00
Nikolay Sivov
6f35351f81
kernel32: EnumTimeFormatsA() doesn't support TIME_NOSECONDS.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:03 +09:00
Nikolay Sivov
982c3ede72
kernel32: GetLocaleInfoA() doesn't support LOCALE_SSHORTTIME.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:07:43 +09:00
Alexandre Julliard
3b7cdc0b84
kernel32/tests: Fix some todo tests that succeed or fail depending on the kernel version.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Sebastian Lackner
659e585166
kernel32/tests: Add a test to demonstrate a deadlock by suspending a thread during a system APC.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Hugh McMaster
77a75d74a2
kernel32/tests: Add tests for GetConsoleFontSize.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Michael Stefaniuc
bcff50a9d4
kernel32/tests: Simplify an ok() condition (PVS-Studio).
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:25 +09:00
Hugh McMaster
0ad7a0df89
kernel32/tests: Add tests for the FALSE pathway of GetCurrentConsoleFont.
...
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:35 +09:00
Sebastian Lackner
536d7d98fe
kernel32/tests: Add tests for triggering write watches in asynchronous ReadFile call.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-25 15:19:21 +09:00
Sebastian Lackner
8a33dd43f6
ntdll: Do not check if object was signaled after user APC in server_select.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 13:21:10 +09:00
Sebastian Lackner
49dd5577eb
kernel32/tests: Add test to show that multiple user APCs are processed at once.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 13:21:07 +09:00
Sebastian Lackner
646888ec79
kernel32/tests: Remove unnecessary busy loop (PVS-Studio).
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:08 +09:00
Sebastian Lackner
966827bbc1
kernel32: Implement stub for GetPhysicallyInstalledSystemMemory.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:39 +09:00
Sebastian Lackner
16a97953c0
kernel32/tests: Add tests for GetPhysicallyInstalledSystemMemory.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:39 +09:00
Sebastian Lackner
d94a6c770a
kernel32/tests: Add test to demonstrate a bug related to alertable waits.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 14:02:40 +09:00
Jacek Caban
e4e1b89732
kernel32: Added session id tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:32:47 +09:00
Charles Davis
3eb8e325b8
kernel32/tests: Use a volatile pointer to cause a crash in the debugger tests. (Clang).
...
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
2015-10-07 21:28:55 +09:00
Michael Müller
00d966cd3a
ntdll: Return STATUS_OBJECT_NAME_INVALID in wine_nt_to_unix_file_name for prefix-only paths.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Michael Müller
e0bbfc3503
kernel32/tests: Add additional tests for GetFileAttributesExW.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Michael Müller
9d58aac467
kernel32: Implement Set/GetThreadGroupAffinity and add tests.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
André Hentschel
774efacbec
kernel32/tests: Don't test for the exact process count.
2015-09-25 20:59:35 +02:00
Nikolay Sivov
a7e294c064
libwine: Fix double byte default char initialization.
2015-09-11 20:58:04 +09:00
Thomas Faller
98aa8528d5
kernel32/tests: Fix uninitialized memory of a test case.
2015-09-08 14:48:27 +09:00
Thomas Faber
9165dbbffc
kernel32/tests: Run test_thread_fpu_cw on x86 MSVC builds.
2015-09-02 14:54:22 +09:00
Daniel Lehman
72922cd1ea
kernel32/tests: Add tests for Invariant.
2015-08-28 13:13:46 +09:00
Daniel Lehman
043c0c6c5a
kernel32: Add Invariant string table.
2015-08-27 14:27:50 +09:00
Daniel Lehman
5bf1423c2c
kernel32: Return LOCALE_INVARIANT from ConvertDefaultLocale.
2015-08-25 17:41:35 +09:00
Dmitry Timoshkov
0a2ef17620
kernel32/tests: Avoid intermittent test failures.
2015-08-24 18:41:36 +09:00
Nikolay Sivov
cc2bc84d14
kernel32/tests: Fix GetGeoInfo() test failure on Win10.
2015-08-24 14:42:00 +09:00
Dmitry Timoshkov
3bed65b5a9
server: For querying thread information demand THREAD_QUERY_LIMITED_INFORMATION access.
2015-08-21 14:35:04 +09:00
Dmitry Timoshkov
1d2241eca3
server: For querying process information demand PROCESS_QUERY_LIMITED_INFORMATION access.
2015-08-21 14:35:01 +09:00
Dmitry Timoshkov
8738cea7de
kernel32/tests: Add some tests for THREAD_QUERY_LIMITED_INFORMATION.
2015-08-20 16:32:53 +09:00
Dmitry Timoshkov
49f43c39fd
kernel32/tests: Add some tests for PROCESS_QUERY_LIMITED_INFORMATION.
2015-08-20 14:33:16 +09:00
Dmitry Timoshkov
27664e3c59
kernel32/tests: Fix compilation with PSDK.
2015-08-20 14:33:10 +09:00
Sebastian Lackner
0fabfe7d6b
server: Add support for setting file disposition information.
...
Based on a patch by Dmitry Timoshkov.
2015-08-19 20:19:57 +09:00
Dmitry Timoshkov
e67a00b466
ntdll: Separate image relocation from NtMapViewOfSection.
2015-08-18 19:56:48 +09:00
André Hentschel
4b8df74447
kernel32/tests: Add more ARM and ARM64 arch strings.
2015-08-12 22:52:26 +09:00
Francois Gouget
f8a7d6ed74
Assorted spelling fixes.
2015-08-07 23:50:48 +09:00
Sebastian Lackner
1d2331344f
kernel32/tests: Add tests for JobObjectLimitInformation info classes.
2015-07-31 12:08:16 +02:00
Andrew Cook
453458f294
server: Implement JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE.
2015-07-17 14:28:59 +09:00
Sebastian Lackner
4ccdc0c036
kernel32/tests: Repeat test for SignalObjectAndWait multiple times to test wineserver wakeup cookie management.
2015-07-15 16:29:25 +09:00
Dmitry Timoshkov
38649f2060
kernel32/tests: Add a loader test using minimal PE image that Windows7 is able to load.
2015-07-13 22:08:30 +09:00
Dmitry Timoshkov
edc0fa74a3
kernel32: Fix compilation of loader tests with PSDK.
2015-07-13 22:08:26 +09:00
Sebastian Lackner
d2a3c9c20e
kernel32/tests: Fix leak of threadpool object.
2015-07-03 13:08:28 +09:00
Sebastian Lackner
eadd27a38a
kernel32: Forward remaining threadpool functions to ntdll.
2015-07-03 13:08:20 +09:00
Michael Stefaniuc
c50f6a304c
kernel32/tests: The result of a comparison is already a BOOL.
2015-06-30 17:40:27 +09:00
Michael Müller
d0ae2b0d3d
kernel32: Implement GetNumaProcessorNode.
2015-06-29 19:07:51 +09:00
Michael Müller
81142c9985
kernel32/tests: Add tests for GetNumaProcessorNode.
2015-06-29 19:07:51 +09:00
Sebastian Lackner
d082ea3eab
ntdll: Implement support for AT_ROUND_TO_PAGE flag in NtMapViewOfSection.
2015-06-26 20:35:05 +09:00
Sebastian Lackner
7a8470ea94
ntdll: NtMapViewOfSection should fail if both addr_ptr and zero_bits is set.
2015-06-26 20:35:05 +09:00
Sebastian Lackner
b80bbd5986
kernel32/tests: Add GetVolumePathNameW tests.
2015-06-23 20:46:09 +09:00
Sebastian Lackner
d01c135aed
kernel32/tests: Add a lot of picky GetVolumePathName tests.
2015-06-23 20:46:08 +09:00
Erich E. Hoover
ed151a5efc
kernel32: Handle device paths in GetVolumePathName.
...
NT-style paths that have a device prefix (\??\) also return the drive
of the current working directory (even if they're valid devices).
2015-06-23 20:46:08 +09:00
Erich E. Hoover
5a84969f39
kernel32: Handle bogus DOS paths in GetVolumePathName.
...
Paths that are not NT and not even close to DOS don't actually fail
catastrophically. Even though MSDN suggests that it returns the boot
drive in this case, tests indicate that it returns the drive of the
current working directory.
2015-06-23 20:46:07 +09:00
Erich E. Hoover
e8e13308ea
kernel32: Handle semi-DOS paths in GetVolumePathName.
...
Add support for "semi-DOS" paths, these paths revert to the drive
letter specified in the first character.
2015-06-23 20:46:03 +09:00
Erich E. Hoover
62279b7f4d
kernel32/tests: Add a bunch more GetVolumePathName tests.
2015-06-23 20:44:25 +09:00
Erich E. Hoover
b29b0d2cff
kernel32/tests: Convert GetVolumePathName tests into a list.
2015-06-23 20:44:25 +09:00
Erich E. Hoover
f6c7e247ad
kernel32: Implement GetVolumePathName.
...
The purpose of this function is to return the most fundamental path
without leaving a filesystem. Steam uses this so that it can use inode
searches, without this functionality some installations/validations will
fail if the Steam Library is not on the same drive as Steam
itself (symlink'd to another location).
2015-06-23 20:44:21 +09:00
Erich E. Hoover
5e817e93de
kernel32: Implement GetSystemTimes.
2015-06-11 15:58:34 +09:00
Louis Lenders
305a73bcb5
kernel32/tests: Add tests for GetSystemTimes.
2015-06-11 15:58:15 +09:00
Michael Müller
7fe0b56e15
kernel32: Forward SetFileInformationByHandle FileDispositionInfo class to ntdll.
2015-06-11 15:34:42 +09:00
Michael Müller
fd8fae105b
kernel32: Improve stub for SetFileInformationByHandle.
2015-06-11 15:32:26 +09:00
Jacek Caban
09176c3aa0
kernel32: Treat empty locale name as LOCALE_INVARIANT.
2015-06-10 15:00:15 +09:00
Nikolay Sivov
5742497a35
kernel32/tests: Some tests for invalid classes in SetFileInformationByHandle().
2015-06-09 18:05:48 +09:00
Sebastian Lackner
8ddab2c2f4
ntdll: Fix status code when NtMapViewOfSection parameter check fails.
2015-06-08 15:34:04 +09:00
Sebastian Lackner
5204d89dc9
kernel32/tests: Add tests for virtual memory alignment behaviour.
...
AT_ROUND_TO_PAGE is only available on 32-bit non-wow64 systems.
2015-06-08 15:33:59 +09:00