Commit Graph

364 Commits

Author SHA1 Message Date
Nikolay Sivov 944a0228f5 ws2_32/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:08:18 +09:00
Sebastian Lackner 4d959241c8 ws2_32/tests: Add tests for getsockopt() with SO_SNDBUF and SO_RCVBUF optname.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 13:34:32 +09:00
Bruno Jesus 5913a107d8 ws2_32: Add WSAPoll() implementation.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 14:29:48 +01:00
André Hentschel 3701d7714e ws2_32/tests: Don't test function directly when reporting WSAGetLastError().
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:25 +09:00
Bruno Jesus a787321d62 ws2_32/tests: Ensure we have more than one IP to test gethostbyname.
Sebastian called my attention about his machine that has a single IP and
make test fails. In such cases it is safe to assume that the IP returned
is the default route so the test is meaningless in this situation.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 23:58:43 +09:00
Bruno Jesus 2056de01b5 ws2_32/tests: Check if the first IP is a default route in gethostbyname.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:51 +09:00
Bruno Jesus 7f06cd4ca2 ws2_32/tests: Add more tests related to WSACleanup.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 13:25:54 +09:00
Bruno Jesus 344cddb63a ws2_32/tests: Add WSAPoll() tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Erich E. Hoover effd2c4192 ws2_32: Add asynchronous support for TransmitFile.
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:08 +09:00
Erich E. Hoover f1ebc93603 ws2_32: Add support for TransmitFile headers and footers.
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Erich E. Hoover 4d081f36ef ws2_32: Implement a basic synchronous TransmitFile.
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Bruno Jesus ad2405daa4 ws2_32/tests: Add WSAEnumNameSpaceProviders[A|W] tests.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:55 +09:00
Erich E. Hoover 109d4b914a ws2_32: Check for invalid parameters in TransmitFile.
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
2015-10-07 21:28:55 +09:00
Sebastian Lackner efb1b16dc8 ws2_32/tests: Add tests for InetPtonW.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:15 +09:00
André Hentschel d0a5a32546 ws2_32/tests: Don't test function directly when reporting WSAGetLastError(). 2015-09-25 20:59:33 +02:00
Marcus Meissner 5af9acadb6 ws2_32/tests: Fixed argument to GetComputerNameExW. 2015-09-10 17:22:43 +09:00
Bruno Jesus 4e01388a32 ws2_32/tests: Remove a dead assignment. 2015-09-09 16:18:21 +09:00
Bruno Jesus 18a02d8f41 ws2_32: Try harder to get the host name address in getaddrinfo. 2015-09-08 14:50:42 +09:00
Bruno Jesus 45677e173d ws2_32: UDP sockets can write data even when unbound. 2015-06-19 17:01:05 +09:00
Bruno Jesus 213419961c ws2_32/tests: Add UDP select() test for unbound socket. 2015-06-16 16:51:26 +09:00
Sebastian Lackner 3d51b4eb9d ws2_32/tests: Add tests for calling select with zero timeout. 2015-06-08 15:30:32 +09:00
Bruno Jesus 3c16babcce ws2_32/tests: Fix a couple of wrong traces. 2015-05-14 14:24:44 +09:00
Sebastian Lackner 0d2817b161 ws2_32: Properly handle closing sockets during a select call.
Based on a patch by Bruno Jesus.
2015-05-05 23:15:31 +09:00
Francois Gouget 9561037fe0 ws2_32/tests: Add a trailing '\n' to an ok() call. 2015-04-23 19:43:28 +09:00
Bruno Jesus 383ed3ce9a ws2_32/tests: Add one more SO_ERROR test. 2015-04-14 16:50:48 +09:00
Bruno Jesus 2da8f9a9db ws2_32/tests: Add more select() tests. 2015-04-13 15:08:49 +09:00
Bruno Jesus 61ed82fc86 ws2_32: Restore the local socket address that was bound with filter for getsockname(). 2015-04-09 13:26:29 +09:00
Bruno Jesus dcfde9a9df ws2_32/tests: Add tests about retrieving the local address of an interface bound socket. 2015-04-09 13:26:24 +09:00
Bruno Jesus 71c60d15d3 ws2_32: Handle SO_ERROR manually in getsockopt().
As soon as SO_ERROR is read from getsockopt it is reset in the kernel,
when attempting a non-blocking connection the wine server reads
SO_ERROR first so when the application tries to read the value it will
end with zero.
2015-04-08 23:16:40 +09:00
Bruno Jesus f01ccea4b5 ws2_32/tests: Add some more select() related tests. 2015-04-08 23:15:55 +09:00
Bruno Jesus e845bded34 ws2_32: Fix return value when receiving with MSG_OOB without data to read. 2015-03-31 14:49:50 +09:00
Bruno Jesus 45d64ce26b ws2_32/tests: Skip part of OOB test to unfreeze NT4 test.
NT4 doesn't care about OOB_INLINE and receives data in the wrong recv
call so the next call never receives data and hangs forever. Skip it
to resume NT4 test normally.
2015-03-31 14:49:31 +09:00
Bruno Jesus 5103291645 ws2_32/tests: Add more WSAEnumNetworkEvents tests. 2015-03-31 14:49:25 +09:00
Bruno Jesus 10d51ce855 ws2_32: Check for OOB data in select() calls when not OOB_INLINED. 2015-03-30 16:32:50 +09:00
Bruno Jesus 10f7265270 ws2_32: Do not poll unbound descriptors. 2015-03-30 16:32:36 +09:00
Bruno Jesus b2556a2c34 ws2_32: Ensure sockets in exceptfds get set when an error occurs. 2015-03-30 16:31:53 +09:00
Frédéric Delanoy f6a341c747 Assorted spelling/grammar fixes. 2015-03-27 22:29:48 +09:00
Bruno Jesus a19febc1a7 ws2_32/tests: Check the OOB mark in the right place. 2015-03-16 15:08:46 +09:00
Bruno Jesus 8042dbac55 ws2_32/tests: Improve some helper functions. 2015-03-16 15:08:38 +09:00
Qian Hong bed1525fa4 ws2_32: Improved error handling in gethostname when name length is insufficient. 2015-03-13 22:28:30 +09:00
Bruno Jesus 0415407404 ws2_32/tests: Add more select() tests related to OOB handling. 2015-03-13 00:28:15 +09:00
Bruno Jesus 18b3f4cadd ws2_32/tests: Test the behavior of reading data from an OOBINLINE'd socket. 2015-03-11 12:48:13 +09:00
Bruno Jesus 3e676b205d ws2_32/tests: Add more select() tests. 2015-03-08 17:47:07 +09:00
Bruno Jesus 4ca53984e4 ws2_32/tests: Improve setup_connector_socket to allow non-blocking connect calls. 2015-03-08 17:47:05 +09:00
Bruno Jesus 9eaf92d62a ws2_32/test: Don't test unsupported IP_MULTICAST_TTL on NT4. 2015-03-08 17:47:03 +09:00
Bruno Jesus a65ae0ea57 ws2_32/tests: Fix a NT4 crash due to unsupported SIO_ADDRESS_LIST_QUERY. 2015-03-08 17:47:00 +09:00
Bruno Jesus 2522e205ec ws2_32/tests: Move second WSACleanup test elsewhere. 2015-03-08 17:46:56 +09:00
Michael Stefaniuc bbe2c58261 ws2_32/tests: Actually test a return value (PVS-Studio). 2015-03-04 21:50:46 +09:00
Michael Stefaniuc 4c36ef1d4e ws2_32/tests: Remove an unused assignment (PVS-Studio). 2015-03-04 21:50:45 +09:00
Erich E. Hoover c15c7a4925 ws2_32/tests: Add an interactive test for interface change notifications. 2015-02-10 22:57:48 +09:00
Bruno Jesus 038399fcdd ws2_32: getaddrinfo must SetLastError on success or failure. 2015-01-20 11:11:43 +01:00
Bruno Jesus ab1eee505b ws2_32: Ensure recv functions set last error to zero when they succeed. 2015-01-13 17:52:04 +01:00
Bruno Jesus 35a887acc5 ws2_32/tests: Show that send/recv functions set last error to zero on success. 2015-01-09 11:50:08 +01:00
Bruno Jesus 9d9e1cc9ae ws2_32: Ensure an IPv6 is not recognized as IPv4 in WSAStringToAddress. 2014-12-31 11:37:18 +01:00
Bruno Jesus 1c4cb63036 ws2_32: Implement getsockopt(SO_BSP_STATE). 2014-12-09 20:05:58 +01:00
Bruno Jesus d7a8beb0f7 ws2_32: Filter unset bits when argument is smaller than 32 bits. 2014-12-05 20:47:40 +01:00
Bruno Jesus 14324fec97 ws2_32/tests: Add SO_BSP_STATE tests. 2014-12-05 20:47:30 +01:00
Sebastian Lackner d57ccd54f8 ws2_32/tests: Fix several copy and paste errors. 2014-12-01 11:11:05 +01:00
Piotr Caban 6d5b7c7344 ws2_32/tests: Add more select tests. 2014-11-28 19:18:15 +01:00
Sebastian Lackner 69cc90957c ws2_32/tests: Wait for thread termination before cleaning up winsock. 2014-11-20 22:34:48 +09:00
Bruno Jesus 344bc6d72b ws2_32: Add tests and implement inet_pton.
Special thanks to Erich Hoover.
2014-11-04 13:28:16 +09:00
Henri Verbeet 32724def72 ws2_32: Return an error if "out_buff" is NULL for SIO_ADDRESS_LIST_QUERY. 2014-10-07 20:22:03 +02:00
Henri Verbeet b914a6461b ws2_32: Return WSAEINVAL if "out_size" is smaller than the minimum size for SIO_ADDRESS_LIST_QUERY. 2014-10-06 19:38:12 +02:00
Henri Verbeet 4e6ebd633a ws2_32: Return the needed buffer size for SIO_ADDRESS_LIST_QUERY. 2014-10-06 19:38:10 +02:00
Bruno Jesus e3998e3988 ws2_32/tests: Wait for thread test before returning (valgrind). 2014-06-16 09:39:29 +02:00
Bruno Jesus 79d29e2347 ws2_32/tests: Initialize a test buffer (valgrind). 2014-06-12 18:05:21 +02:00
Bruno Jesus 843ef11eb8 ws2_32: Return the correct error if SO_REUSEADDR is set in bind error. 2014-05-09 14:17:00 +02:00
Bruno Jesus eda14e611c ws2_32/tests: Test more the behavior of SO_REUSEADDR. 2014-05-07 10:25:58 +02:00
Austin English 171748da4d ws2_32: Skip some tests on broken ISPs. 2014-03-24 11:40:44 +01:00
Hans Leidekker 77f5f01bbb ws2_32/tests: Mark some test results on Windows 8 as broken. 2014-03-07 14:11:35 +01:00
André Hentschel b05a3e999c ws2_32/tests: Get rid of the do_oob_send helper function. 2014-03-06 13:38:35 +01:00
André Hentschel ec7c5907f7 ws2_32/tests: Test OOB data more sequential by sending bidirectional. 2014-03-06 13:38:35 +01:00
Bruno Jesus de0c46fd52 ws2_32/tests: Add W2K error values as valid. 2014-02-22 08:41:34 -06:00
Bruno Jesus 5782bac2a0 ws2_32: Fix conversion of address in GetAddrInfoW. 2014-02-20 13:28:46 +01:00
Bruno Jesus da16d6b660 ws2_32: Fix edge case for getaddrinfo in BSD and OSX. 2014-02-17 11:28:20 +01:00
Bruno Jesus 3c64a7c4e2 ws2_32: Fix some parameters checking in AcceptEx. 2014-02-06 17:08:13 +01:00
Bruno Jesus 7a8d43043a ws2_32/tests: Fix AcceptEx tests related to address length. 2014-02-05 13:49:26 +01:00
Bruno Jesus 84d91bb93d ws2_32/tests: Add missing closesocket calls (Coverity). 2014-01-27 14:13:53 +01:00
Francois Gouget e8e97f165d ws2_32/tests: Add a trailing '\n' to a win_skip() call. 2014-01-10 18:14:54 +01:00
Bruno Jesus 0d965c14e9 ws2_32/tests: Add broken for a WSALookupServiceBegin test in NT. 2014-01-09 12:12:52 +01:00
Bruno Jesus a1e2294006 ws2_32/tests: Show that the last WSACleanup must destroy sockets. 2014-01-07 10:47:13 +01:00
Bruno Jesus 7e4d075ec1 ws2_32/tests: Add some FIONREAD tests. 2014-01-07 10:47:06 +01:00
Bruno Jesus b461fa4468 ws2_32/tests: Add some WSALookupService[Begin|Next|End] tests. 2014-01-06 16:59:06 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Bruno Jesus 719715c774 ws2_32: Cope with invalid hints in getaddrinfo/GetAddrInfoW. 2013-12-31 12:24:30 +01:00
Bruno Jesus 3eb39dc08e ws2_32: Add extended IPX protocol support. 2013-12-31 12:23:52 +01:00
Bruno Jesus b8e9bbd4d0 ws2_32/tests: Fix some test message typos. 2013-12-27 20:28:16 +01:00
Dmitry Timoshkov c66c14ddda ws2_32: Move the buffer used by inet_ntoa into the per-thread data. 2013-12-26 14:35:14 +01:00
Dmitry Timoshkov 3a56f9b956 ws2_32/tests: Add a test for inet_ntoa called from two threads. 2013-12-26 14:35:13 +01:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
André Hentschel f8c416b219 ws2_32/tests: Enable compilation with -D__WINESRC__. 2013-11-08 12:47:25 +01:00
Frédéric Delanoy 5274f855e3 ws2_32/tests: Use BOOL type where appropriate. 2013-10-09 10:08:29 +02:00
Hans Leidekker 1422a56667 ws2_32: Always return the source address from WSAAccept. 2013-10-02 20:18:23 +02:00
Hans Leidekker 260119e682 ws2_32: Return an error from accept if the address buffer is too small. 2013-10-02 20:18:23 +02:00
Hans Leidekker 9530a06fed ws2_32: Add some tests for getpeername. 2013-10-02 20:18:23 +02:00
Hans Leidekker 14a092a336 ws2_32: Always clear res on error in getaddrinfo/GetAddrInfoW. 2013-10-02 20:18:23 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Bruno Jesus adb8fb115a ws2_32: Implement WSASendMsg(). 2013-10-01 10:56:10 +02:00
Bruno Jesus d811747a14 ws2_32/tests: Fix an ok() call comment. 2013-09-30 11:28:50 +02:00
André Hentschel b605553e28 ws2_32/tests: Don't test function directly when reporting WSAGetLastError(). 2013-09-23 11:53:46 +02:00