Author: phater
Date: Fri May 26 10:31:50 2017
New Revision: 74667
URL:
http://svn.reactos.org/svn/reactos?rev=74667&view=rev
Log:
[WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
Modified:
trunk/rostests/apitests/ws2_32/bind.c
Modified: trunk/rostests/apitests/ws2_32/bind.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ws2_32/bind.c?re…
==============================================================================
--- trunk/rostests/apitests/ws2_32/bind.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ws2_32/bind.c [iso-8859-1] Fri May 26 10:31:50 2017
@@ -128,12 +128,12 @@
ok(Error == 0, "Unexpected error %d on closesocket for double bind test\n",
Error);
ok(WSAGetLastError() == 0, "Unexpected wsa error %d on closesocket for double
bind test\n", WSAGetLastError());
/* Check SO_BROADCAST and bind to broadcast address */
- Socket = socket(AF_INET, Tests[10].Type, Tests[10].Proto);
+ Socket = socket(AF_INET, Tests[11].Type, Tests[11].Proto);
ok(Socket != INVALID_SOCKET, "Failed to create socket with error %d for
broadcast test, next tests might be wrong\n", WSAGetLastError());
Error = setsockopt(Socket, SOL_SOCKET, SO_BROADCAST, (const char *) &Broadcast,
sizeof(Broadcast));
ok(Error == 0, "Unexpected error %d on setsockopt for broadcast test\n",
Error);
ok(WSAGetLastError() == 0, "Unexpected wsa error %d on setsockopt for broadcast
test\n", WSAGetLastError());
- Error = bind(Socket, (const struct sockaddr *) &Tests[10].Addr,
sizeof(Tests[10].Addr));
+ Error = bind(Socket, (const struct sockaddr *) &Tests[11].Addr,
sizeof(Tests[11].Addr));
ok(Error == 0, "Unexpected error %d on bind for broadcast test\n", Error);
ok(WSAGetLastError() == 0, "Unexpected wsa error %d on bind for broadcast
test\n", WSAGetLastError());
Error = closesocket(Socket);