Commit Graph

158 Commits

Author SHA1 Message Date
Serge Gautherie fbda6efe95 psapi/tests: NtQueryVirtualMemory() 3rd parameter is MEMORY_INFORMATION_CLASS, not ULONG.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 10:27:52 +01:00
Andrew Wesie 533ef8d21a psapi/tests: Test QueryWorkingSetEx.
Signed-off-by: Andrew Wesie <awesie@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-07 13:25:37 +01:00
Alexandre Julliard 3f61f905ba psapi/tests: Increase some timeouts.
These are too short when running under QEMU.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 00:33:46 +01:00
Zebediah Figura e2206eefdb psapi/tests: Remove an unreliable test.
This fails on Windows 10 version 1709 and later.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 17:11:43 +02:00
Zebediah Figura ccf3dabd7e psapi/tests: Increase the GetPerformanceInfo() margins again.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 17:11:43 +02:00
Alexandre Julliard cfb06ad158 psapi: Avoid using forwards.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-19 12:56:59 +02:00
Louis Lenders fb4116ee02 kernel32: Add K32GetWsChangesEx stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47131
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-09 08:23:31 -05:00
Alex Henrie 7d268f7de4 psapi/tests: Increase GetPerformanceInfo HandleCount error margin.
This fixes intermittent test failures on all versions of Windows.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-19 14:34:28 +01:00
Zebediah Figura f01b9ab4c1 psapi/tests: Call GetPerformanceInfo() after NtQuerySystemInformation().
For some reason, this gives consistently much more accurate results.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:27 +02:00
Zebediah Figura 42016f6f0e psapi/tests: Avoid failing silently.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Zebediah Figura 81242f747e psapi/tests: Avoid using PROCESS_ALL_ACCESS.
Since its value changed in Windows Vista.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Zebediah Figura 06deefdb4c psapi/tests: Link statically to psapi.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Zebediah Figura dbfc4ab5ed psapi/tests: Avoid linking statically to kernel32 functions.
Since they are not available everywhere.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-05 19:08:34 +02:00
Marcus Meissner 24ffba47d3 psapi: GetProcessImageFileName gets character count as argument.
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:40:02 +02:00
Zebediah Figura a47332ae17 psapi/tests: Add todo_wine to a failing test.
This test was based on an implementation of K32EnumProcessModules() which was later rewritten.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 17:14:10 +02:00
Michael Stefaniuc 707882a6f2 psapi/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 11:41:59 +02:00
Zebediah Figura 0250693354 kernel32: Allow GetModuleInformation() to succeed on a WoW64 process.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Zebediah Figura 54f287d88a kernel32: Allow GetModuleFileNameEx() to succeed on a WoW64 process.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Zebediah Figura 72e3fdf0a2 kernel32: Allow GetModuleBaseName() to succeed on a WoW64 process.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Zebediah Figura 54186a4c9f kernel32: Allow EnumProcessModules() to succeed on a WoW64 process.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-30 22:26:49 +02:00
Akihiro Sagawa 844ae22fcf kernel32: Return the list of module handles even if the last argument is null.
Touhou Shinpiroku relies on this behaviour.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 19:46:19 +01:00
Akihiro Sagawa 97ad2b8b39 psapi/tests: Add more EnumProcessModules tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 19:10:59 +01:00
Alex Henrie 4f5342f26b psapi/tests: Increase GetPerformanceInfo error margins for Windows 8.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 13:25:20 +01:00
Alex Henrie cf1bbad714 psapi/tests: Increase GetPerformanceInfo error margins for Windows 10.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-18 09:44:52 +02:00
Sebastian Lackner e39d1614a9 psapi/tests: Remove todo_wine from succeeding tests.
These were missed in 19a79f4228.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 11:01:47 -05: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
André Hentschel 4d98658621 psapi/tests: Also accept strlen as return value.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-05 19:32:30 +09:00
André Hentschel c789554786 psapi/tests: Adjust margin for win10.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-05 19:32:27 +09:00
André Hentschel 9182d5b541 psapi/tests: Remove bad test.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-05 19:32:23 +09:00
André Hentschel d33984e6ba psapi/tests: Disable tests which crash on win10.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-05 19:32:16 +09:00
André Hentschel a3ab34b419 psapi/tests: Don't check for exact value.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-09-25 21:00:11 +02:00
Olivier F. R. Dierick 9effcc98f9 psapi/tests: Add test for EnumProcessModules with NULL pointer. 2015-07-06 17:09:49 +09:00
Sebastian Lackner cacc9ae888 psapi: Implement semi-stub for K32EnumProcessModulesEx. 2014-12-16 17:25:36 +01:00
Sebastian Lackner 4032eef90f kernel32: Fix implementation of K32GetPerformanceInfo. 2014-11-14 17:11:38 +09:00
Sebastian Lackner 4297046d01 psapi/tests: Add tests for GetPerformanceInfo function. 2014-11-14 17:10:57 +09:00
Bruno Jesus 78eac8156e psapi/tests: Free buffer on error (valgrind). 2014-07-14 17:22:46 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
André Hentschel 3df00e29ee psapi/tests: Fix tests compilation with __WINESRC__ defined. 2013-10-25 13:36:01 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Alexandre Julliard ab2eb34a82 psapi/tests: Define the required Windows version before including anything. 2013-02-20 13:17:12 +01:00
André Hentschel cd465edb00 psapi/tests: Fix test on win8. 2012-12-04 00:03:39 +01:00
Stefan Leichter 0773ed8d27 psapi/tests: Added tests for EnumProcessModules with last parameter NULL. 2012-06-22 14:09:51 +02:00
Alexandre Julliard d08f34cd8e kernel32: Fix buffer overflows in K32GetModuleFileNameExA/W. 2012-04-30 14:27:13 +02:00
Dmitry Timoshkov 4c6a19837b psapi: Add missing return value checks. 2012-03-27 18:01:00 +02:00
Dmitry Timoshkov 48a2a467cd psapi: Make sure that NtQueryVirtualMemory(MemorySectionName) succeeds under Windows 2000 too. 2012-02-07 09:31:14 -06:00
Dmitry Timoshkov 2a0de94844 psapi: Add a test for NtQueryVirtualMemory(MemorySectionName). 2012-02-06 10:19:30 -06:00
Alexandre Julliard 773c46b929 psapi/tests: Don't check data returned from a failing call. 2012-01-31 15:38:01 +01:00
Dmitry Timoshkov 7705ad45c9 psapi: Add more GetMappedFileName tests. 2012-01-27 18:05:46 +01:00
Francois Gouget 187de1794e psapi/tests: Fix the EnumProcessModules() test and provide more diagnostic information if it fails.
On some Windows systems aclayers.dll gets injected into the process and brings in a lot of extra dlls.
2011-08-26 16:33:52 +02:00