mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 21:48:10 +00:00
a928f15f42
- Add some tests for tcpip.sys TDI capabilities (for now, TDI_PROVIDER_INFO) svn path=/trunk/; revision=65546
37 lines
699 B
C
37 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();
|
|
}
|