mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[KMTESTS:MM]
Tests for paging IO MDL for read operations. Equivalent to r75833. svn path=/trunk/; revision=75840
This commit is contained in:
parent
82c8079674
commit
369ae3655b
1 changed files with 8 additions and 0 deletions
|
@ -318,11 +318,19 @@ TestIrpHandler(
|
|||
}
|
||||
else
|
||||
{
|
||||
PMDL Mdl;
|
||||
|
||||
ok(Irp->AssociatedIrp.SystemBuffer == NULL, "A SystemBuffer was allocated!\n");
|
||||
Buffer = MapAndLockUserBuffer(Irp, Length);
|
||||
ok(Buffer != NULL, "Null pointer!\n");
|
||||
RtlFillMemory(Buffer, Length, 0xBA);
|
||||
|
||||
Mdl = Irp->MdlAddress;
|
||||
ok(Mdl != NULL, "Null pointer for MDL!\n");
|
||||
ok((Mdl->MdlFlags & MDL_PAGES_LOCKED) != 0, "MDL not locked\n");
|
||||
ok((Mdl->MdlFlags & MDL_SOURCE_IS_NONPAGED_POOL) == 0, "MDL from non paged\n");
|
||||
ok((Irp->Flags & IRP_PAGING_IO) != 0, "Non paging IO\n");
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue