reactos/rostests/apitests/ws2_32/ws2_32.c
Colin Finck c91fecf968 - Add a test suite for ws2_32.dll
It currently tests the features I needed to adjust/implement when fixing the wininet problem.
  ReactOS currently passes all tests, but fails one if you launch the test app for the second time quickly after the first time (timing problem in the network code?).
- Fix the behaviour on an ioctlsocket FIONREAD call: The output buffer is not touched, when we have no socket, but when we have no connection, it is set to 0.
- Forward the socket call to WSASocketW instead of WSASocketA, minimal performance improvement

svn path=/trunk/; revision=33824
2008-06-01 22:08:45 +00:00

25 lines
438 B
C

/*
* PROJECT: ws2_32.dll API tests
* LICENSE: GPLv2 or any later version
* FILE: apitests/ws2_32/ws2_32.c
* PURPOSE: Program entry point
* COPYRIGHT: Copyright 2008 Colin Finck <mail@colinfinck.de>
*/
#include "ws2_32.h"
HANDLE g_hHeap;
BOOL
IsFunctionPresent(LPWSTR lpszFunction)
{
return TRUE;
}
int wmain()
{
g_hHeap = GetProcessHeap();
return TestMain(L"ws2_32_apitests", L"ws2_32.dll");
}