Commit Graph

194 Commits

Author SHA1 Message Date
Dmitry Timoshkov 4fd82271eb ntdll/tests: Fix compilation with PSDK.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-28 17:28:53 +02:00
Michael Stefaniuc 3400da025e ntdll/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-22 01:01:55 +02:00
Jacek Caban 1e87417e7f ntdll: Always use server ioctl for FSCTL_PIPE_PEEK.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-05 19:33:09 +02:00
Jacek Caban 82e6713b75 server: Don't allow APCs on objects associated with completion port.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Alistair Leslie-Hughes a3c1fbae2a ntdll/tests: Use standard wine_dbgstr_longlong.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:45 +02:00
Jacek Caban 4bf58b6e10 ntdll/tests: Added more completion port tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 20:49:08 +02:00
Jacek Caban 7c26ebfc99 ntdll/tests: Moved pipe read tests to pipe.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 13:21:42 +02:00
Jacek Caban b682e1c41d server: Use server-side I/O for message mode named pipes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:07:09 +01:00
Francois Gouget 5a2aa5e1d9 ntdll/tests: A spelling fix in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:27:49 +01:00
Sebastian Lackner 2c733057e9 ntdll: Implement FileAccessInformation class in NtQueryInformationFile.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 17:47:45 +01:00
Józef Kucia c530fb9e28 ntdll: Fix NtFlushBuffersFile() for files with FILE_APPEND_DATA access.
Fixes a regression introduced by commit
f7d40d45da.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 20:43:40 +01:00
Józef Kucia a0aac49591 ntdll/tests: Add test for flushing file with FILE_APPEND_DATA access.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 20:43:39 +01:00
Paul Gofman f7d40d45da ntdll: NtFlushBuffersFile should fail if the file handle has no write access.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 15:48:01 +01:00
Paul Gofman 85aa2067b0 ntdll/tests: Add test for NtFlushBuffersFile error conditions.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 15:47:59 +01:00
Jacek Caban bede6499ed server: Create async object in ioctl request handler.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:24:11 +01:00
Sebastian Lackner f9ede5c4c1 ntdll/tests: Add tests for FileIoCompletionNotificationInformation info class.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:54:04 +01:00
Sebastian Lackner 627829daa3 ntdll: Implement FileIdInformation class in NtQueryInformationFile.
Based on a patch by Jonathan Doron.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Sebastian Lackner 8b3d43acab ntdll/tests: Add tests for FileIdInformation class.
Based on a patch by Jonathan Doron.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jacek Caban 0d23bfd398 ntdll: Check output buffer before server_write_file call.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:53 +01:00
Jacek Caban a240bfcf9b ntdll: Check input buffer before server_read_file call and don't touch event on error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:53 +01:00
Detlef Riekenberg 1ebbfb1a1d ntdll/tests: Use case insensitive compare for filenames.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-01 15:14:10 +02: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 38f9a788c4 ntdll: Add tests for NULL object attributes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +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 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
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
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
Sebastian Lackner bdef5c5508 ntdll/tests: Add tests for info struct size for FileDispositionInformation. 2015-06-11 15:32:30 +09:00
Jactry Zeng c9e1b6fb57 ntdll/tests: Test opening a directory with NULL ObjectName. 2015-05-27 17:13:08 +09:00
Huw Davies 14c53a5863 ntdll/tests: Wait for pending file operations to complete. 2015-05-14 20:06:06 +09:00
Alexandre Julliard 38b7c8839c ntdll: Don't run user APCs in NtCancelIoFile. 2015-05-07 15:38:57 +09:00
Jianqiu Zhang 4c41f2bb52 ntdll/tests: Add test for FileFsFullSizeInformation. 2015-04-23 20:43:19 +09:00
Nikolay Sivov 0563c78cb6 ntdll/tests: Fix some string leaks (Valgrind). 2014-05-06 13:47:01 +02:00
Dmitry Timoshkov d5fd04f2f0 ntdll/tests: Always wait until the operation completes if returned status is STATUS_PENDING. 2014-03-21 14:14:42 +01:00
André Hentschel a160a65317 ntdll: Enable compilation with -D__WINESRC__. 2013-11-06 12:01:53 +01:00
Dmitry Timoshkov 60ef62c8c2 ntdll: NtReadFile should update io status block on EOF for a synchronous read. 2013-10-31 16:52:48 +01:00
Dmitry Timoshkov a5e80b2d60 ntdll: NtReadFile should not fail for 0-length reads at EOF. 2013-10-31 16:18:33 +01:00
Dmitry Timoshkov 3a41ebfbf2 ntdll/tests: Add tests for reading 0 bytes at end of file. 2013-10-29 10:21:41 +01:00
Francois Gouget 4db9cd5f21 ntdll/tests: Fix compilation on systems that don't support nameless unions. 2013-10-15 14:28:20 +02:00
Dmitry Timoshkov 49d0e64f88 kernel32: The return and last error values set by ReadFile on EOF depend on whether overlapped pointer was passed in. 2013-10-11 12:45:06 +02:00
Dmitry Timoshkov fa2ca8f6b4 ntdll/tests: Add more tests for reading beyond EOF. 2013-10-11 12:45:06 +02:00
Dmitry Timoshkov 3cae528eef ntdll: Offset -1 (FILE_WRITE_TO_END_OF_FILE) is supposed to work in NtWriteFile for disk files in overlapped mode. 2013-10-09 16:11:33 +02:00
Dmitry Timoshkov 1670c7f9a6 ntdll/tests: Accept previously declared behaviour of overlapped IO as broken.
It highly depends on Windows version and updates/SP installed.
2013-10-07 14:44:35 +02:00
Dmitry Timoshkov aa8546ecc2 ntdll: Add support for FILE_APPEND_DATA to NtWriteFile. 2013-10-07 14:44:35 +02:00
Dmitry Timoshkov ae3c49d841 ntdll/tests: Add a test for file position after NtWriteFile in FILE_APPEND_DATA mode. 2013-10-07 14:44:35 +02:00
Dmitry Timoshkov 4544826291 ntdll/tests: Use official path for temporary files instead of current directory. 2013-09-24 20:42:35 +02:00
Dmitry Timoshkov ab8d704e24 ntdll/tests: Extend the FILE_APPEND_DATA test. 2013-09-23 11:49:55 +02:00
Dmitry Timoshkov b4ab43b3de kernel32: Remove a 0-length read optimization from ReadFile. 2013-09-20 11:11:47 +02:00
Dmitry Timoshkov d6900fc556 ntdll/tests: Add 0-length read tests for a disk file. 2013-09-20 11:11:00 +02:00
Dmitry Timoshkov 9e50cc540a ntdll: NtWriteFile should fail for overlapped IO on files if offset is negative. 2013-09-13 10:56:10 +02:00
Dmitry Timoshkov ea7f9737bd ntdll: Add support to NtWriteFile for special offset -1. 2013-09-11 20:33:22 +02:00
Dmitry Timoshkov a4ec059354 ntdll/tests: Add some tests for negative file offsets. 2013-09-06 12:03:55 +02:00
Dmitry Timoshkov d37fac0519 ntdll: NtWriteFile should fail for overlapped IO on files if offset is NULL. 2013-09-04 17:56:50 +02:00
Dmitry Timoshkov 0b4c9cb533 server: Store full-sized completion information on the server side. 2013-08-23 20:15:43 +02:00
Dmitry Timoshkov 42cad0ebb1 ntdll/tests: Use WAIT_OBJECT_0 instead of 0. 2013-08-23 10:42:39 +02:00
Dmitry Timoshkov b126d7c7ce ntdll/tests: Fix one more place regarding temp path usage. 2013-08-23 10:42:36 +02:00
Dmitry Timoshkov 8eb9ffb3fa ntdll/tests: Mark the NtReadFile call which doesn't return STATUS_PENDING for an overlapped IO call as broken, and don't test returned values in broken case. 2013-08-23 10:42:21 +02:00
Dmitry Timoshkov 49e31d29ca ntdll/tests: Add some tests for FILE_USE_FILE_POINTER_POSITION. 2013-08-23 10:42:16 +02:00
Dmitry Timoshkov aa14c2daa5 ntdll/tests: Add the tests for some error cases. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov 8ec8d70ada ntdll/tests: Use NtWriteFile instead of WriteFile in order to detect broken overlapped IO implementation. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov b45ec4607b ntdll/tests: Fix the typos. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov fbe4012eaf ntdll/tests: Add a bunch of overlapped IO tests for files. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov fca3231914 ntdll/tests: Use official path for temporary files instead of current directory. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov 87db683aad ntdll/tests: Check WriteFile return values. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov 7cab2e99c3 ntdll: Last parameter of NtSetIoCompletion is 64-bit on 64-bit platforms. 2013-08-20 20:52:18 +02:00
Francois Gouget 1dbc3d0924 ntdll/tests: Add a trailing '\n' to an ok() call. 2013-08-19 12:53:20 +02:00
Andrey Turkin 2df4caa6a1 ntdll/tests: Test FileDispositionInformation file class. 2013-08-16 11:55:23 +02:00
André Hentschel d53a55ea88 ntdll: Improve stub for FileFsAttributeInformation in NtQueryVolumeInformationFile. 2013-03-26 16:36:42 +01:00
Erich Hoover e7dbb212a2 server: Access the completion from the file descriptor instead of the async object. 2012-06-06 13:47:28 +02:00
Frédéric Delanoy a5229fc51f ntdll: Add NtCreateFile tests for invalid chars in file/dir name. 2011-09-12 16:49:56 +02:00
Alexandre Julliard bfb98ace57 ntdll/tests: Wait for async I/O to complete when the result is STATUS_PENDING. 2011-08-26 11:59:49 +02:00
Austin English 5a56fba741 ntdll/tests: Remove a dead assignment (LLVM/Clang). 2011-07-26 10:20:55 +02:00
Dmitry Timoshkov f834d23197 server: FILE_OVERWRITE and FILE_OVERWRITE_IF need the FILE_WRITE_ATTRIBUTES permission. 2011-03-30 15:10:20 +02:00
Dmitry Timoshkov 0cc619ccc5 ntdll: Add more NtCreateFile tests. 2011-03-30 15:10:12 +02:00
Dmitry Timoshkov 3998820497 ntdll: Add a bunch of NtCreateFile tests. 2011-03-29 12:21:32 +02:00
Dmitry Timoshkov bfd69719a6 ntdll: Use an NtWriteFile pointer instead of a static import. 2011-03-28 17:08:53 +02:00
Alexandre Julliard 852d9675bc ntdll/tests: Avoid sizeof in a trace. 2011-01-31 15:36:32 +01:00
Francois Gouget 2df9129c52 ntdll/tests: Fix compilation on systems that don't support nameless unions. 2011-01-17 12:51:15 +01:00
Matteo Bruni eb11dee4fc ntdll/tests: Add a FILE_APPEND_DATA test. 2011-01-12 18:12:48 +01:00
André Hentschel ba1f962d10 ntdll/tests: Don't test function directly when reporting GetLastError(). 2010-12-29 11:59:33 +01:00
Francois Gouget 036909e838 ntdll/tests: Add a trailing '\n' to an ok() call. 2010-12-03 16:08:25 +01:00
Gerald Pfeifer 8c7164603f ntdll/tests: Remove unused variable from test_query_volume_information_file. 2010-11-24 12:07:04 +01:00
Louis Lenders 5eac14f11c ntdll/tests: Add tests for NtQueryVolumeInformationFile with FileFsVolumeInformation class. 2010-11-23 14:19:08 +01:00
Alexandre Julliard be94563670 ntdll/tests: Make some variables static. 2010-10-01 13:37:03 +02:00
Reece Dunn fd66d61861 ntdll/tests: check io.Status in the file tests. 2010-07-28 16:28:21 +02:00
Gerald Pfeifer b8ee145992 ntdll/tests: Remove variable len which is not really used from create_file_test. 2010-05-05 10:52:30 +02:00
Michael Stefaniuc ed1711ec54 ntdll/tests: Avoid using the 'long' types. 2010-04-21 11:57:33 +02:00
Paul Vriens 42094d2598 ntdll/tests: Prevent test failures on Windows. 2010-04-12 15:38:51 +02:00
Paul Vriens a155cf5f35 ntdll/tests: We need a bigger buffer for NtQueryInformationFile. 2010-04-12 15:38:45 +02:00
Paul Vriens 3536770083 ntdll/tests: Enumerate one by one. 2010-04-12 15:38:36 +02:00
Paul Vriens 8b8d2038fb ntdll/tests: Make sure we can enumerate the directory. 2010-04-12 15:38:27 +02:00