Commit Graph

79 Commits

Author SHA1 Message Date
Jacek Caban f608a4130c kernel32/tests: Don't mark win8+ result as broken.
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 3ba2b5898c kernel32/tests: Improved pipe CloseHandle tests.
Current tests suggest that SetNamedPipeHandleState between ReadFile
calls makes a difference (and it doesn't).

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-19 19:52:41 +01:00
Francois Gouget ae6c2d235e kernel32/tests: A couple of spelling fixes in ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 12:10:01 +01:00
Jacek Caban d8bfbbdc07 server: Signal pipe server fd in create_pipe_server.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-02 15:56:05 +01:00
Ken Thomases e85f0e0c3b kernel32/tests: Test that ConnectNamedPipe() works immediately after DisconnectNamedPipe() without waiting for the client to close.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-21 13:39:30 +02:00
Jacek Caban 7abde01cc1 kernel32/tests: Added GetNamedPipeInfo tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-06 19:17:44 +02: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
Michael Müller 96aca1ad02 kernel32/tests: Add additional tests for overlapped handling of CreateNamedPipe.
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-04-07 16:44:24 +09:00
Sebastian Lackner ace9d329e9 server: Fix crash when calling SetNamedPipeHandleState on partially closed pipe.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner ee02530bc4 server: Fix crash when calling GetNamedPipeHandleState on partially closed pipe.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner 78948b24b7 kernel32/tests: Add tests for calling WriteFile on pipe when other end is closed.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Sebastian Lackner e235b0670d kernel32/tests: Add tests for sending empty message in combination with CloseHandle.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Adam Martinson 563865c654 kernel32/tests: Add tests for closing named pipes with CloseHandle.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:14 +09:00
Alexandre Julliard 3b7cdc0b84 kernel32/tests: Fix some todo tests that succeed or fail depending on the kernel version.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Michael Stefaniuc dbe6c5576d kernel32/tests: Actually test a return value (PVS-Studio). 2015-03-04 21:50:42 +09:00
Alexandre Julliard 5a6cda458d kernel32/tests: Try harder to empty the pipe for completion notification. 2015-02-24 21:55:46 +09:00
André Hentschel ae1251596e kernel32/tests: Don't test function directly when reporting GetLastError(). 2015-01-21 21:35:57 +01:00
Francois Gouget 0dd5cb1cef Assorted spelling fixes. 2014-09-29 10:36:36 +02:00
Sebastian Lackner 652f5d9b87 kernel32/tests: Add additional tests for multithreaded partial reads from named pipes. 2014-09-04 20:21:03 +02:00
Sebastian Lackner e65a618538 kernel32/tests: Add tests for partially received pipe messages after calling SetNamedPipeHandleState. 2014-09-04 20:21:03 +02:00
Sebastian Lackner e4551eee46 kernel32/tests: Add basic tests for partially received pipe messages (ERROR_MORE_DATA). 2014-09-04 20:21:03 +02:00
Sebastian Lackner 36debbe80f kernel32/tests: Ensure that pipe tests read the full pipe content. 2014-09-04 20:21:03 +02:00
Sebastian Lackner 03f3ed89f3 kernel32/tests: Add some even more basic pipe tests without call to PeekNamedPipe. 2014-09-04 20:21:03 +02:00
Sebastian Lackner 8f9df3afde kernel32/tests: Always allow only one correct test result, add todo_wine where necessary. 2014-08-21 18:02:30 +02:00
Sebastian Lackner 3e23aa5769 kernel32/tests: Add better handling for test failure in test_readfileex_pending. 2014-08-21 18:02:30 +02:00
Sebastian Lackner 55396b7018 kernel32: Implement SetNamedPipeHandleState.
Based on a patch by Adam Martinson.
2014-08-21 18:02:29 +02:00
Sebastian Lackner 9e66e97db8 kernel32: Implement GetNamedPipeHandleState.
Based on a patch by Adam Martinson.
2014-08-21 18:02:28 +02:00
Michael Müller 9602fa7a93 server: Fix return value for FSCTL_PIPE_WAIT if pipe does not exist. 2014-06-11 13:07:11 +02:00
Frédéric Delanoy a10dfea044 kernel32/tests: Use BOOL type where appropriate. 2013-11-19 18:47:36 +01:00
Dmitry Timoshkov 5628183bf4 kernel32/tests: Fix pipe tests compilation with __WINESRC__ defined. 2013-10-22 16:37:39 +02:00
Dmitry Timoshkov b4ab43b3de kernel32: Remove a 0-length read optimization from ReadFile. 2013-09-20 11:11:47 +02:00
Dmitry Timoshkov 70930fa12c kernel32/tests: Add 0-length read tests for a pipe. 2013-09-20 11:11:27 +02:00
Marcus Meissner b652dcee42 kernel32: Fixed read overflow in WriteFile argument. 2012-06-20 20:16:01 +02:00
Francois Gouget dc2956206f kernel32/tests: Add a trailing '\n' to an ok() call. 2012-06-18 17:19:17 +02:00
Vincent Povirk 14404713de kernel32: Return success from ReadFileEx/WriteFileEx when I/O is pending. 2012-06-15 10:30:23 +02:00
Vincent Povirk 982153605a kernel32: Add test for pending ReadFileEx/WriteFileEx calls. 2012-06-15 10:30:19 +02:00
Vincent Povirk 0a2d6e5183 kernel32: Add named pipe server test with ReadFileEx/WriteFileEx. 2012-06-15 10:30:16 +02:00
Bernhard Loos c368df4865 server: PIPE_TYPE_BYTE | PIPE_READMODE_MESSAGE is invalid for named pipes. 2011-10-13 19:57:19 +02:00
Thomas Faber bcbaefe8b5 kernel32/tests: Fix MSVC build in file.c and pipe.c. 2011-10-04 17:31:08 -05:00
Bernhard Loos 5098b13177 server: Only the sharing parameter of two instances of the same pipe have to match. 2011-09-27 16:54:00 +02:00
Francois Gouget 3de330db54 tests: Remove unneeded assert.h includes. 2011-09-27 10:59:56 +02:00
André Hentschel 0ba0f505af kernel32/tests: Don't test function directly when reporting GetLastError(). 2011-09-26 18:16:03 +02:00
Bernhard Loos 3623b9d4c9 kernel32: Create(Named)Pipe uses an nonalertable io mode. 2011-08-22 19:49:40 +02:00
André Hentschel dd07baa824 kernel32/tests: Use the right return type and a better failed test message. 2011-01-13 15:22:00 +01:00
André Hentschel 85386c2c6e kernel32/tests: Don't test function directly when reporting GetLastError(). 2011-01-12 14:59:43 +01:00
Alexandre Julliard 7064e8838c kernel32/tests: Make some variables static. 2010-10-01 13:36:35 +02:00
Austin English 3fd4f68827 kernel32/tests: Check return value of alarmThread in test_NamedPipe_2(). 2010-05-24 12:56:19 +02:00
Andrey Turkin 85cc2c13f6 server: Connect named pipe synchronously when overlapped param is NULL. 2010-05-24 12:39:35 +02:00
André Hentschel 56d28f7d5b kernel32: Double the alarm timeout to prevent a failed test. 2010-05-07 13:30:44 +02:00
Vincent Povirk b210eeb1ad kernel32/tests: Test waiting on a disconnected client pipe. 2009-06-09 17:01:14 +02:00