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
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
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
Francois Gouget
3b239dbc62
kernel32: Implement K32GetProcessImageFileNameA().
2011-08-05 15:22:47 +02:00
Austin English
db27d9afa9
psapi/tests: Get rid of an ugly test macro.
2010-10-08 11:02:27 +02:00
Austin English
f2d1145142
psapi/tests: Macro cleanup.
2010-10-05 12:07:37 +02:00
Austin English
cad2aaff2b
psapi/tests: Remove an ugly macro.
2010-10-04 15:00:05 +02:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Alexandre Julliard
b86d515ed6
dlls: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:36 +02:00
Alexandre Julliard
6cf16d723a
psapi/tests: Fix the working set tests for Wow64.
2010-06-22 13:06:23 +02:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00
Alexandre Julliard
6164ce2d82
makefiles: Use the standard C_SRCS variable as the list of test files.
...
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00