Commit Graph

800 Commits

Author SHA1 Message Date
Alexandre Julliard d18c14c311 ntdll/tests: Add tests for directory sorting.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:26 +09:00
Alexandre Julliard 12fc123338 ntdll: Cache the entire directory contents and sort the names before returning files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:26 +09:00
Alexandre Julliard 5006040541 ntdll: Implement RtlCompareUnicodeStrings.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-03 15:14:20 +09:00
Alexandre Julliard ebf9c5cd17 ntdll/tests: Convert directory filename tests to Unicode.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-03 15:14:20 +09:00
Alexandre Julliard 1c31ba252c ntdll: Store the directory identity and search mask in the directory cache.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:30:11 +09:00
Alexandre Julliard a4dcfd1195 ntdll: Add tests for buffer overflows in NtQueryDirectoryFile.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 00:54:08 +09:00
Sebastian Lackner 9acff7550d ntdll: Do not update iosb.Status after FSCTL_PIPE_LISTEN call.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 17:08:30 +09:00
Sebastian Lackner f4a5b4561d ntdll/tests: Add tests for iosb.Status value after pending FSCTL_PIPE_LISTEN call.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 16:44:24 +09:00
Sebastian Lackner 7389e84dd0 ntdll/tests: Fix some test failures on Win 8+.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 16:44:24 +09:00
Sebastian Lackner 18ea2e5f88 ntdll/tests: Add test for threadpool environment version 3.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:32 +09:00
Thomas Faber 5441f8352c ntdll/tests: Test NtOpenKey with zero access.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 17:29:17 +09:00
Sebastian Lackner dcf914857c ntdll/tests: Allow broken SpinCount for some Win 8+ systems.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 23:15:38 +09:00
Frédéric Delanoy 06b39c982d ntdll/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:09 +09:00
Sebastian Lackner 123185c3a2 ntdll: Set correct number of arguments for breakpoint exceptions.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:12 +09:00
Sebastian Lackner d0cc0dd69f ntdll: Fix up instruction pointer in context for EXCEPTION_BREAKPOINT on x86_64.
Similar to eab168cf9e for x86.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:08 +09:00
Sebastian Lackner 109e847f2a ntdll/tests: Add separate tests for exception handling of int $0x3.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:06 +09:00
Sebastian Lackner 4e878e9114 ntdll/tests: Add additional tests for instruction pointer in debug service tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:03 +09:00
Sebastian Lackner d0b88e7454 ntdll/tests: Add more tests for calling int $0x2d on x86 and x86_64.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 00:49:12 +09:00
Sebastian Lackner 2689b7b1be ntdll/tests: Add tests for RtlInitializeCriticalSectionEx.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:29 +09:00
Henri Verbeet e65c89f1c5 ntdll: Add special handling for int $0x2d exceptions.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:37 +09:00
Charles Davis e0311318fc ntdll: Add some more NTSTATUS->DOS error mappings.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Sebastian Lackner 446067b34d ntdll/tests: Fix flags passed to VirtualFree in exception tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:39:03 +09:00
Alexandre Julliard 14c3f703dd ntdll/tests: Add some tests for opening objects through symlinks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:07:30 +09:00
Michael Müller 5c50f65830 ntdll: Implement SystemRecommendedSharedDataAlignment class in NtQuerySystemInformation.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:54 +09:00
Alexandre Julliard f17fe5a4ad ntdll/tests: Remove some macros.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 22:10:54 +09:00
Sebastian Lackner 5b478f7c7e ntdll/tests: Simplify exception tests by using todo_wine_if.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 21:50:19 +09:00
Alexandre Julliard 39e60dc680 server: Support opening objects from any root, not only directories.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 20:36:17 +09:00
Alexandre Julliard b35642f516 ntdll/tests: Fix a couple of test failures on limited user accounts.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 12:01:55 +09:00
Alexandre Julliard 883ca7395b ntdll/tests: Add some tests for registry path names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 22:56:38 +09:00
Alexandre Julliard b21a324070 server: Use the link_name operation to create named objects.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-05 00:20:01 +09:00
Alexandre Julliard 37503be654 server: Fix checks for a valid directory in object attributes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 14:57:37 +09:00
Alexandre Julliard 6fe37f35bf ntdll: Add tests for the length of the object attributes structure.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-30 00:30:25 +09:00
Alexandre Julliard b93c78dc6c ntdll/tests: Add a helper function to run tests across all kernel object types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-30 00:29:01 +09:00
Francois Gouget 93988c5039 ntdll/tests: Fix an infinite loop on platforms where NtQuerySystemInformationEx() is not implemented.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:30:50 +09:00
Alexandre Julliard 38f9a788c4 ntdll: Add tests for NULL object attributes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard fe0924625f ntdll: Add a helper to validate attributes in open calls, and use a common pattern in all calls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard b3064d748b server: Implement NtOpenJobObject.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 16:38:53 +09:00
Andrew Eikum a124064ce5 ntdll: Implement SystemLogicalProcessorInformationEx.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:49:31 +09:00
Alexandre Julliard 8b2ba27c86 ntdll: Add tests for kernel object names in the various open functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:41:30 +09:00
Alexandre Julliard 3e33f6c2d9 ntdll/tests: Fix some more failures on restricted Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:15:48 +09:00
Alexandre Julliard abeb60f017 ntdll/tests: Add some more tests for kernel object names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:32:40 +09:00
Alexandre Julliard 29e0178cf5 ntdll/tests: Fix a test failure on restricted Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 21:36:28 +09:00
Alexandre Julliard cd6e9c38e4 server: Fix constraints on the length of NT object names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 20:48:08 +09:00
Alex Henrie a228d7d980 ntdll/tests: Correct signaled / not signaled error messages.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:04 +09:00
Sebastian Lackner 6483c07b4e ntdll/tests: Add tests for setting debug registers with NtSetContextThread.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 15:50:54 +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 114123370b ntdll: Add NtQuerySystemInformationEx() stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:26 +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
Sebastian Lackner 08706ef357 server: Implement wineserver call for SystemHandleInformation.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 17:51:59 +01:00
Sebastian Lackner e4e906c871 ntdll/tests: Add more tests for SystemHandleInformation.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:51:06 +01:00
Piotr Caban a8ef261493 ntdll: Fix NtQueryDirectoryFile behavior on short file names on case insensitive file systems.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 20:26:48 +01:00
Sebastian Lackner 1980834c7d ntdll: ProcessDebugFlags should return debug_children flag instead of !debugger_present.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:43 +01:00
Sebastian Lackner 85df0c61e5 ntdll/tests: Add more tests for ProcessDebugFlags.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:26:03 +09:00
Qian Hong b4172c08dd ntdll/tests: Restore old value in a more context independent way.
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:34 +09:00
Qian Hong 6a03e618df ntdll/tests: Add SIMD exception test for floating point invalid operation fault.
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:24 +09:00
Alexandre Julliard 9cad1cc847 ntdll/tests: Use more reasonable timeouts and avoid long long constants.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 21:38:30 +09:00
Thomas Faber 429fcf3a9d ntdll/tests: Fix build with PSDK headers.
CRITICAL_SECTION is distinct from RTL_CRITICAL_SECTION in PSDK.

Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:06 +09:00
Jacek Caban 26df0863ca ntdll: Added more NtOpenKey tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:16 +09:00
Sebastian Lackner b1c8e0591c ntdll/tests: Print the correct status code in ok() messages.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:09:24 +09:00
Jacek Caban 731d09fa9d server: Store all 32 bits of value type.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-12 23:42:26 +09:00
Jacek Caban 5eb3035374 ntdll: Added KeyCachedInformation key info class implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-12 22:17:02 +09:00
Sebastian Lackner 163b3f1e38 ntdll/tests: Add tests for multiple registry notifications per key.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:27 +09:00
Jacek Caban 7bd852c6ce ntdll: Added NtNotifyChangeMultipleKeys implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:45 +09:00
Jacek Caban e0d51609a1 server: Notify parent key when subkey is created.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban deba2faf60 server: Reset event in set_registry_notification.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban 7d66a01fc2 ntdll: Return STATUS_PENDING in NtNotifyChangeKey if async notify is performed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban a0d0d0dd0a ntdll: Fixed argument order in NtNotifyChangeKey.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 23:20:50 +09:00
Jacek Caban 4269423ee4 ntdll: Added NtOpenKeyEx implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Thomas Faller c96684c3b2 ntdll/tests: Fix use of uninitialized value.
Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 13:27:34 +09:00
Sebastian Lackner 7c46763ea7 ntdll: Implement RtlIsCriticalSectionLocked[ByThread].
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:34 +09:00
Sebastian Lackner b028f2c076 ntdll/tests: Add tests for RtlIsCriticalSectionLocked[ByThread].
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:23 +09:00
Sebastian Lackner 381c034be3 ntdll: Wait_thread_proc should not terminate on user APC.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 20:56:27 +09:00
Sebastian Lackner e37cdbbc2c ntdll/tests: Add Sleep to make threadpool wait tests more reliable.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 20:56:17 +09:00
Sebastian Lackner b8315e87f1 ntdll/tests: Add tests for calling NtReadFile/NtWriteFile on directory.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:17:05 +09:00
Sebastian Lackner 0b1204d870 ntdll/tests: Add tests for RtlRegisterWait.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +09:00
Sebastian Lackner f97a18f8c0 ntdll/tests: Limit number of pool threads to avoid random test failures.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +09:00
Sebastian Lackner 53c8345c6d ntdll/tests: Fix test failures on Windows 10.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +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 24ea49b6ab ntdll/tests: Add additional tests for NtQueryFullAttributesFile.
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 c6b888f16f ntdll/tests: Simplify the RtlRandom test. 2015-09-25 20:59:55 +02:00
Lauri Kenttä b3d51fb78b ntdll/tests: Fix error message. 2015-09-15 17:00:32 +09:00
Sebastian Lackner ec851647e2 server: Implement open_file_object for rootdir pointing to file object. 2015-08-21 14:39:21 +09:00
Sebastian Lackner 84d2610aaf ntdll/tests: Add additional tests for calling NtOpenFile with file object as RootDirectory. 2015-08-21 14:36:12 +09:00
Sebastian Lackner 1f2a443cb4 server: Implement support for FileLinkInformation class in NtSetInformationFile. 2015-08-21 14:36:02 +09:00
Qian Hong 57d443824a ntdll/tests: Add tests for FileLinkInformation class.
Based on the FileRenameInformation tests by Sebastian Lackner.
2015-08-21 14:35:18 +09:00
Sebastian Lackner 857d436784 ntdll: Implement FileRenameInformation support. 2015-08-20 18:34:13 +09:00
Sebastian Lackner 6899eade5d ntdll/tests: Add additional tests for FileRenameInformation. 2015-08-20 18:33:45 +09:00
Jianqiu Zhang a5b58144a5 ntdll/tests: Add basic tests for FileRenameInformation. 2015-08-20 18:33:39 +09:00
Erich E. Hoover 6955a298f4 server: Do not permit FileDispositionInformation to delete a file without write access. 2015-08-19 20:19:58 +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
Andrey Gusev 5cdcd4493f Assorted spelling and typos fixes. 2015-08-18 15:00:13 +09:00
André Hentschel c4cd981a61 ntdll/tests: Add ARM64 support for map protection tests. 2015-08-17 16:59:32 +09:00
Sebastian Lackner 905bf79337 server: Store correct entry point for first thread. 2015-07-30 11:37:15 +02:00
Sebastian Lackner 22f0611cf9 ntdll/tests: Add tests for ThreadQuerySetWin32StartAddress info class. 2015-07-29 21:44:03 +02:00
Sebastian Lackner c774a8c3ae ntdll/tests: Add basic tests for RtlQueueWorkItem. 2015-07-28 09:54:05 +02:00
Sebastian Lackner db1e8a686e ntdll/tests: Add tests for RtlDecompressFragment. 2015-07-10 14:54:57 +09:00
Sebastian Lackner 0e7bd45571 ntdll/tests: Add tests for RtlDecompressBuffer. 2015-07-10 14:54:54 +09:00
Sebastian Lackner e3503799d9 ntdll: Implement RtlDecompressFragment.
Based on a patch by Michael Müller.
2015-07-10 14:54:50 +09:00
Sebastian Lackner 577332f612 ntdll: Implement semi-stub for RtlGetCompressionWorkSpaceSize. 2015-07-09 17:34:48 +09:00
Sebastian Lackner ee899dc55e ntdll/tests: Add tests for RtlGetCompressionWorkSpaceSize. 2015-07-09 17:34:46 +09:00