Commit Graph

179 Commits

Author SHA1 Message Date
Frédéric Delanoy 81b181fe72 ntdll/tests: Use BOOL type where appropriate. 2013-10-29 10:22:15 +01:00
Detlef Riekenberg 3e162934d1 ntdll/tests: Fix SYSTEM_CACHE_INFORMATION failures. 2013-01-17 12:18:54 +01:00
André Hentschel 7f74df0224 ntdll/tests: Fix check for PAGE_READWRITE. 2012-12-03 18:24:39 +01:00
Akihiro Sagawa bb4a31a8ed ntdll: Calculate SystemProcessInformation's ReturnLength and return it. 2012-10-24 14:19:47 +02:00
Akihiro Sagawa 3fc4e88473 ntdll: Add ReturnLength test for NtQuerySystemInformation with SystemProcessInformation. 2012-10-24 14:19:35 +02:00
Alexandre Julliard be2b45ce0a ntdll/tests: Fix some test failures on Windows. 2012-10-12 11:47:01 +02:00
Michael Stefaniuc dfd4191de4 ntdll/tests: Fix a memory leak (Smatch). 2012-09-17 12:05:48 +02:00
James Eder fbd5a9aaff ntdll/tests: Add test for ProcessorInformation case of NtPowerInformation. 2012-09-13 16:55:33 +02:00
Piotr Caban 67920ea6dd ntdll/tests: Added basic NtQuerySystemInformation(SystemLogicalProcessorInformation) tests. 2012-09-04 16:15:55 +02:00
Gerald Pfeifer 80d078d071 ntdll: Omit unused typedef in test_query_process_basic. 2012-07-09 09:59:46 -04:00
Gerald Pfeifer 0016d8a2dd ntdll: Omit unused typedef in test_query_process. 2012-06-21 08:36:38 +02:00
Gerald Pfeifer 43923decba ntdll: Omit unused typedef in test_query_timeofday. 2012-06-05 19:58:12 +02:00
Detlef Riekenberg 0e235e5dc6 ntdll/tests: Add tests for NtGetCurrentProcessorNumber. 2012-05-21 11:33:40 +02:00
Dmitry Timoshkov 277259157b ntdll: Change the virtual memory test to accept both READWRITE and WRITECOPY protections. 2011-11-23 14:14:17 +01:00
André Hentschel 94a9db6383 ntdll/tests: Run the execution test only on x86 platforms. 2011-09-08 11:13:36 +02:00
Steven Wallace b3369e06c7 ntdll: implemented ProcessDebugFlags in NtQueryInformationProcess. 2011-03-30 15:10:01 +02:00
Austin English 3dd514cee7 ntdll/tests: Make sure return values are used (LLVM/Clang). 2011-02-08 13:42:14 -06:00
Marcus Meissner da8c179d61 ntdll: Fixed file view mapping in regards to no-exec. 2010-11-15 13:20:09 +01:00
Marcus Meissner 2e7dc35786 ntdll: Check and fix PE header protections. 2010-11-08 18:12:57 +01:00
Alexandre Julliard 7a151d5e3e ntdll/tests: Fix a test failure on 64-bit platforms. 2010-09-30 11:19:31 +02:00
Alexandre Julliard e317b6068e ntdll/tests: Fix the image protection test on Mac OS where the image limits are only approximative. 2010-09-15 11:28:54 -05:00
Alexandre Julliard 8e2e95ed7e ntdll/tests: Add a test for the protection state of the read-write data section. 2010-08-26 18:05:55 +02:00
Marcus Meissner 2ca5513a62 ntdll: Set correct protection flags on sections in builtin DLLs. 2010-08-24 17:22:32 +02:00
Andrew Nguyen d7956bab54 ntdll: Fix the status code for ProcessDebugObjectHandle class in NtQueryInformationProcess when the debugger is absent. 2010-07-28 16:28:19 +02:00
Alexandre Julliard 604f79dbdb ntdll/tests: Fix a few test failures in the new exe protection tests. 2010-07-06 19:28:27 +02:00
Marcus Meissner 917089a954 ntdll: Add tests for NtQueryVirtualMemory. 2010-07-05 13:24:17 +02:00
Alexandre Julliard b7b2a20aa2 ntdll/tests: Fix a number of test failures on Wow64. 2010-03-31 16:12:26 +02:00
Henri Verbeet f0a5045254 ntdll: Improve support for the ProcessDebugPort info class in NtQueryInformationProcess(). 2010-03-15 15:56:42 +01:00
Erich Hoover fda39b207c ntdll: Allow 'all processors' flag used in Vista and newer. 2010-02-22 11:57:08 +01:00
Andrew Nguyen 1cdf1cc07e ntdll/tests: Report appropriate skips for information tests. 2010-01-18 14:33:18 +01:00
Andrew Nguyen ab23f87bcc ntdll/tests: Re-enable a commented virtual memory test. 2010-01-18 14:32:54 +01:00
Francois Gouget 7c5df85f51 ntdll/tests: Add a trailing '\n' to an ok() call. 2009-10-07 15:17:04 +02:00
Juan Lang bfb4578356 server: A thread's affinity is restricted to the process affinity. 2009-10-01 11:33:33 +02:00
Juan Lang 24036fe13a server: Setting a process's affinity sets all of its threads' affinities too. 2009-09-30 14:34:32 +02:00
Alexandre Julliard 2e8de49ee1 ntdll/tests: Retrieve the number of processors through GetSystemInfo. 2009-09-30 14:31:57 +02:00
Juan Lang 2e92c726aa ntdll: Don't allow setting a zero thread affinity. 2009-09-29 13:29:43 +02:00
Juan Lang c7b1423521 ntdll: Don't allow setting a zero process affinity. 2009-09-29 13:29:36 +02:00
Juan Lang d9ce24e6cb ntdll/tests: Add tests for process and thread affinity. 2009-09-29 13:29:28 +02:00
Alexandre Julliard 86e4830040 ntdll/tests: Make sure buffer alignment is correct. 2009-08-26 11:52:56 +02:00
Ge van Geldorp cf5e2938a9 ntdll/tests: Pass properly aligned buffers. 2009-08-25 10:23:42 +02:00
Ge van Geldorp 4bc7a3eb92 ntdll/tests: Fix info tests on Win7. 2009-08-24 16:41:26 +02:00
Alexandre Julliard b4a962bbb2 ntdll/tests: Add a missing \n. 2009-04-06 13:52:08 +02:00
Mikołaj Zalewski 9c9532265d kernel32: Implement QueryFullProcessImageFileNameW. 2009-03-31 18:05:55 +02:00
Alexandre Julliard 6a548b1e9d ntdll: Fix the various structures returned by NtQuerySystemInformation for 64-bit. 2009-01-03 14:55:32 +01:00
Aric Stewart 589d7eaa93 ntdll/tests: handle info behavior for vista and 2008 properly. 2008-10-23 15:16:32 +02:00
Aric Stewart a226f6609f ntdll: Implement SystemProcessorPerformanceInformation for Linux (/proc filesystems) and Mac OS X. 2008-10-20 13:56:58 +02:00
Alexandre Julliard 45a0f45cdd ntdll/tests: Fix a few more failures in the info test. 2008-08-27 14:19:23 +02:00
Alexandre Julliard f7a8436e92 ntdll/tests: Allow alternate results in the info test to make it pass on Vista. 2008-08-26 12:07:42 +02:00
Gerald Pfeifer a44771c925 ntdll/tests: Use NTSTATUS instead of DWORD for status variables. 2008-07-16 20:09:59 +02:00
Huw Davies a3d7155947 ntdll: Free the correct buffer in the test. 2008-06-20 11:19:19 +02:00
Jeremy White 6868691af9 ntdll/tests: Only test the readcount for a read below 0x10000 if the return code indicates a partial copy result. 2008-05-21 20:15:42 +02:00
Paul Vriens af7172c186 ntdll/tests: ProcessImageFileName is not supported before XP. 2008-03-10 11:22:49 +01:00
Rob Shearman bf2a35b78d server: Change the get_dll_info server request to allow retrieving the image file name of a process.
Implement NtQueryInformationProcess(ProcessImageFileName).
2007-11-20 14:29:09 +01:00
Alexandre Julliard 5817e36634 ntdll: Improved the stub behavior of NtQuerySystemInformation(SystemModuleInformation). 2007-06-19 16:58:42 +02:00
Paul Vriens f5678a4d38 ntdll/tests: Use GetModuleHandle and skip. 2007-04-05 11:56:18 +02:00
Francois Gouget fb6569a720 ntdll/tests: Use '%u' to print GetLastError(). 2007-01-18 12:55:21 +01:00
Michael Stefaniuc 8ddaf6cc21 ntdll/tests: Win64 printf format warning fixes. 2006-10-14 20:17:34 +02:00
Francois Gouget 17aa2c82d2 Add missing '\n's to ok() calls. 2006-10-03 15:56:16 +02:00
Peter Oberndorfer 78f6032264 ntdll: Add a test for NtReadVirtualMemory. 2006-10-02 21:37:22 +02:00
Stefan Leichter 97f85e497a ntdll/tests: Print 64bit integers as two 32 bit integers. 2006-09-08 12:47:11 +02:00
Alexandre Julliard cba2c84741 ntdll/tests: Don't use sizeof in ok() to avoid printf format warnings. 2006-06-13 14:03:19 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Paul Vriens c2a2687dd8 ntdll/tests: Don't fail if a process is not available. 2006-05-17 10:42:04 +02:00
Francois Gouget 03ede20086 Fix a couple of MSVC signed/unsigned warnings. 2005-08-17 09:53:39 +00:00
Paul Vriens b7fcecca3e Use current process if assigned process cannot be opened. 2005-07-22 19:48:16 +00:00
Francois Gouget c7dcf642ea Add trailing '\n's to ok() calls. 2005-07-06 15:46:47 +00:00
Paul Vriens 1943208eec Added some tests for other information classes.
Correct comment for test 0x3.
2005-07-05 11:46:53 +00:00
Paul Vriens 138934129c NT4 doesn't support ProcessIoCounters. 2005-06-23 09:47:31 +00:00
Paul Vriens fbf0aeaa43 Change ProcessBasicInformation to the same behavior as the rest.
Use KERNEL_USER_TIMES for ProcessTimes.
Add tests for vm, io, times and handlecount info classes.
Fixes for -Wstrict-prototypes warnings.
2005-06-21 20:22:01 +00:00
Francois Gouget b80fbbb85d Remove an unneeded variable in test_query_timeofday().
Rename a variable to 'is_nt' to make its meaning clearer.
2005-06-17 20:55:40 +00:00
Paul Vriens 62441145b6 W2K3 returns STATUS_INVALID_HANDLE instead of STATUS_ACCESS_VIOLATION. 2005-06-16 09:43:59 +00:00
Paul Vriens 7691aca10c Only exact buffer size gives STATUS_SUCCESS. 2005-06-15 10:19:34 +00:00
Paul Vriens 93f887250a Return STATUS_INVALID_INFO_CLASS for non-implemented classes.
Return STATUS_ACCESS_VIOLATION if no buffer given.
Added tests for ProcessBasicInformation.
2005-06-14 12:25:02 +00:00
Paul Vriens 5e5008502e Fixed size of our SYSTEM_TIMEOFDAY_INFORMATION struct.
Fixed return codes and ReturnLength/buffer for
SystemTimeOfDayInformation.
Added tests for SystemTimeOfDayInformation.
2005-06-13 11:34:56 +00:00
Paul Vriens 50d1e4f0bf Fixed ReturnLength of SystemCpuInformation.
Added first test for SystemCpuInformation.
2005-06-10 19:52:32 +00:00
Paul Vriens c5e9809242 Added test for SystemProcessInformation. 2005-06-09 10:03:25 +00:00
Paul Vriens 7464134919 Added SystemHandleInformation tests.
Removed HeapAlloc in test_basic.
Renamed test_basic to test_query_basic.
2005-05-10 13:16:36 +00:00
Francois Gouget 4527aae24f Assorted spelling fixes. 2005-04-19 09:49:38 +00:00
Paul Vriens a9cbabc03c Start of unit tests for *Info* functions.
Check needed length regardless of given length.
Return STATUS_INVALID_INFO_CLASS for non-implemented classes.
Return STATUS_ACCESS_VIOLATION if no buffer given.
2005-04-15 14:12:54 +00:00