mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:31:44 +00:00
[KMTESTS:CC] Add tests for CcSetFileSizes
These are passing in W2K3 but failing in ReactOS. CORE-11819
This commit is contained in:
parent
c086edf366
commit
ba5d6e977b
5 changed files with 460 additions and 0 deletions
34
modules/rostests/kmtests/ntos_cc/CcSetFileSizes_user.c
Normal file
34
modules/rostests/kmtests/ntos_cc/CcSetFileSizes_user.c
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* PROJECT: ReactOS kernel-mode tests
|
||||
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
||||
* PURPOSE: Kernel-Mode Test Suite CcSetFileSizes 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(CcSetFileSizes)
|
||||
{
|
||||
DWORD Ret;
|
||||
ULONG TestId;
|
||||
|
||||
KmtLoadDriver(L"CcSetFileSizes", FALSE);
|
||||
KmtOpenDriver();
|
||||
|
||||
/* 0: mapped data
|
||||
* 1: copy read
|
||||
*/
|
||||
for (TestId = 0; TestId < 2; ++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