mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
- Add some tests for tcpip.sys TDI capabilities (for now, TDI_PROVIDER_INFO) svn path=/trunk/; revision=65546
38 lines
699 B
C
38 lines
699 B
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: User mode part of the TcpIp.sys test suite
|
|
* PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
#include "tcpip.h"
|
|
|
|
static
|
|
void
|
|
LoadTcpIpTestDriver(void)
|
|
{
|
|
/* Start the special-purpose driver */
|
|
KmtLoadDriver(L"TcpIp", FALSE);
|
|
KmtOpenDriver();
|
|
}
|
|
|
|
static
|
|
void
|
|
UnloadTcpIpTestDriver(void)
|
|
{
|
|
/* Stop the driver. */
|
|
KmtCloseDriver();
|
|
KmtUnloadDriver();
|
|
}
|
|
|
|
START_TEST(TcpIpTdi)
|
|
{
|
|
LoadTcpIpTestDriver();
|
|
|
|
ok(KmtSendToDriver(IOCTL_TEST_TDI) == ERROR_SUCCESS, "\n");
|
|
|
|
UnloadTcpIpTestDriver();
|
|
}
|