Author: pschweitzer Date: Fri Sep 15 08:16:14 2017 New Revision: 75840
URL: http://svn.reactos.org/svn/reactos?rev=75840&view=rev Log: [KMTESTS:MM] Tests for paging IO MDL for read operations. Equivalent to r75833.
Modified: trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c
Modified: trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_mm/NtCreateSe... ============================================================================== --- trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c [iso-8859-1] (original) +++ trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c [iso-8859-1] Fri Sep 15 08:16:14 2017 @@ -318,10 +318,18 @@ } 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; }