Commit Graph

57 Commits

Author SHA1 Message Date
Francois Gouget fb037132fd kernel32/tests: Remove an unused assignment in the comm test.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-21 19:01:10 +01:00
Francois Gouget 98093939d6 kernel32/tests: Fix the spelling of three ok() messages and comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:17 +02:00
Michael Stefaniuc 6a04cf4a69 kernel32/tests: Avoid ARRAY_SIZE-like macros.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:03:47 +02:00
Michael Stefaniuc 80be3a460b kernel32/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-27 22:02:48 +02:00
Alexandre Julliard 8d51efc7b9 kernel32/tests: Wait for threads to terminate.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 11:31:05 +02:00
Alex Henrie f35c1b2dc1 ntdll: Finish serial reads of size 0 immediately.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 22:45:07 +09:00
Michael Stefaniuc bcff50a9d4 kernel32/tests: Simplify an ok() condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:25 +09:00
Dmitry Timoshkov a890d0f030 server: Make it possible for WaitCommEvent to detect recursive requests. 2013-11-13 11:21:28 +01:00
Frédéric Delanoy da6c728195 Assorted spelling fixes. 2013-11-07 19:01:20 +01:00
Francois Gouget c31280d6e1 kernel32/tests: Check that WaitCommEvent() returns immediately in overlapped mode. 2013-11-01 10:57:14 +01:00
Dmitry Timoshkov d97a36c51f kernel32/tests: Update trace message to report actually used timeout value. 2013-10-28 10:43:00 +01:00
Dmitry Timoshkov 3b429e88ff server: Add support for pending write flag to the serial device. 2013-10-25 13:36:01 +02:00
Dmitry Timoshkov 53e727ef95 kernel32/tests: WaitCommEvent may sometimes return immediately on a busy system when write operation to a COM-port has already completed. 2013-10-25 13:36:01 +02:00
Dmitry Timoshkov 0db996e14c kernel32/tests: Increase the timeout for completion of write to a COM-port.
It's not enough for some hardware configurations.
2013-10-25 13:36:01 +02:00
Dmitry Timoshkov b46bd115bb kernel32/tests: Accept the case when WriteFile is able to complete the request immediately for an overlapped COM-port write.
The behaviour depends on the driver and hardware used.
2013-10-25 13:36:01 +02:00
Dmitry Timoshkov 6e07317939 kernel32/tests: Fix communication port tests compilation with __WINESRC__ defined. 2013-10-17 20:29:28 +02:00
Francois Gouget dd71bc567b kernel32/tests: Fix compilation on systems that don't support nameless unions. 2013-10-07 14:44:35 +02:00
Dmitry Timoshkov a20b07c558 ntdll: Make asynchronous WaitCommEvent report correct number of bytes returned. 2013-09-26 10:46:54 +02:00
Dmitry Timoshkov 2ffd28cff7 ntdll: Perform the offset checks in NtWriteFile also for a serial device. 2013-09-25 11:48:56 +02:00
Dmitry Timoshkov 084f4b643c ntdll: Perform the offset checks also for a serial device. 2013-09-23 20:32:22 +02:00
Dmitry Timoshkov b4ab43b3de kernel32: Remove a 0-length read optimization from ReadFile. 2013-09-20 11:11:47 +02:00
Dmitry Timoshkov d15e08ae5e kernel32/tests: Add a read/write test for a COM port. 2013-09-11 20:33:22 +02:00
Dmitry Timoshkov f031c676c1 server: Add a serial event mask change counter. 2013-09-10 11:18:57 +02:00
Dmitry Timoshkov 4135900235 kernel32/tests: Add a test to show that WaitCommEvent should fail if there is a pending wait. 2013-09-03 10:55:37 +02:00
Dmitry Timoshkov 663dbd9f1c kernel32/tests: Add a test to show that WaitCommEvent should succeed after SetCommMask(EV_TXEMPTY)+WriteFile+FlushFileBuffers. 2013-09-03 10:55:35 +02:00
Marcus Meissner b084d7a4f8 kernel32/tests: Avoid leaving com handle open (Coverity). 2013-09-02 18:03:36 +02:00
Dmitry Timoshkov f69ec2c61c kernel32/tests: Add a FlushFileBuffers test for a COM port. 2013-08-30 11:46:38 +02:00
Dmitry Timoshkov 52d1080544 ntdll: Properly set flag which indicates buffer empty state. 2013-08-29 11:21:11 +02:00
Dmitry Timoshkov 723d22f6aa kernel32/tests: Increase time interval that WriteFile could spend for an overlapped IO write. 2013-08-28 11:36:36 +02:00
Dmitry Timoshkov c7d27e18e5 kernel32/tests: Remove a useless trace. 2013-08-28 11:36:26 +02:00
Dmitry Timoshkov 2192745042 kernel32/tests: Revert inadvertent change. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov fc2309b84b kernel32/tests: Add interactive WaitCommEvent tests. 2013-08-15 17:20:07 +02:00
Dmitry Timoshkov 507449ee78 kernel32/tests: Make test_waittxempty() use overlapped IO to avoid waiting forever when a kernel driver doesn't support TIOCGICOUNT/TIOCSERGETLSR ioctl.
Most of Linux USB-serial drivers don't support these ioctls.
2013-08-15 17:20:07 +02:00
Dmitry Timoshkov 4654e79776 kernel32/tests: Make serial tests self-contained. 2013-08-15 17:20:07 +02:00
Dmitry Timoshkov a1b08f39a6 kernel32/tests: Constify test data. 2013-08-15 17:20:07 +02:00
Dmitry Timoshkov b288f0a879 kernel32/tests: Make ClearCommError very first test since it depends on device queue being empty. 2013-08-15 17:20:07 +02:00
Dmitry Timoshkov ab7dac6886 kernel32/tests: Fix some typos. 2013-08-15 17:20:07 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
André Hentschel 0ba0f505af kernel32/tests: Don't test function directly when reporting GetLastError(). 2011-09-26 18:16:03 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Marcus Meissner b42c593f67 kernel32: Fixed mismatched bracket (Coverity). 2011-02-23 15:01:17 +01:00
André Hentschel 85386c2c6e kernel32/tests: Don't test function directly when reporting GetLastError(). 2011-01-12 14:59:43 +01:00
Michael Stefaniuc 8f7372488b kernel32/tests: Remove superfluous casts of integer constants. 2010-03-29 11:48:58 +02:00
Alexandre Julliard b9251bcdbf kernel32/tests: Fix a couple of failures in the comm tests. 2009-09-24 13:10:54 +02:00
Alexandre Julliard 72241b5d47 ntdll: Make sure that serial ioctl calls fail on non-serial handles. 2009-09-10 11:06:01 +02:00
Paul Vriens 06ebe936ac kernel32/tests: Only report unimplemented functions once. 2009-06-08 12:44:03 +02:00
Andrew Nguyen 786158796b kernel32/tests: Correctly skip when the Unicode communications functions are not available. 2009-05-19 11:58:53 +02:00
Michael Stefaniuc 9b2730eb88 kernel32: Remove superfluous pointer casts. 2009-03-11 13:03:31 +01:00
Alexandre Julliard bb7de132dd kernel32/tests: Fix pointer casting warnings on 64-bit. 2009-01-03 20:20:14 +01:00
Dan Kegel fbaf037581 kernel32: comm.c: increase time slop. 2008-05-14 13:36:26 +02:00