mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:23:01 +00:00
[KMTESTS:CC] Add a test showing our CcPinMappedData() implementation is broken
This commit is contained in:
parent
ef202724d8
commit
45231fbbc5
5 changed files with 416 additions and 0 deletions
32
modules/rostests/kmtests/ntos_cc/CcPinMappedData_user.c
Normal file
32
modules/rostests/kmtests/ntos_cc/CcPinMappedData_user.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* PROJECT: ReactOS kernel-mode tests
|
||||
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
||||
* PURPOSE: Kernel-Mode Test Suite CcPinMappedData test user-mode part
|
||||
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
|
||||
*/
|
||||
|
||||
#include <kmt_test.h>
|
||||
|
||||
#define IOCTL_START_TEST 1
|
||||
#define IOCTL_FINISH_TEST 2
|
||||
|
||||
START_TEST(CcPinMappedData)
|
||||
{
|
||||
DWORD Ret;
|
||||
ULONG TestId;
|
||||
|
||||
KmtLoadDriver(L"CcPinMappedData", FALSE);
|
||||
KmtOpenDriver();
|
||||
|
||||
/* 1 basic test */
|
||||
for (TestId = 0; TestId < 1; ++TestId)
|
||||
{
|
||||
Ret = KmtSendUlongToDriver(IOCTL_START_TEST, TestId);
|
||||
ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
|
||||
Ret = KmtSendUlongToDriver(IOCTL_FINISH_TEST, TestId);
|
||||
ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
|
||||
}
|
||||
|
||||
KmtCloseDriver();
|
||||
KmtUnloadDriver();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue