[KMTESTS:MM]
authorpschweitzer <pschweitzer@97493ccd-5924-5043-b1f5-66cb403b36ce>
Wed, 13 Sep 2017 11:53:56 +0000 (11:53 +0000)
committerpschweitzer <pschweitzer@97493ccd-5924-5043-b1f5-66cb403b36ce>
Wed, 13 Sep 2017 11:53:56 +0000 (11:53 +0000)
Add a test that shows that MDLs issued by Cc for paging IOs are not in the correct state (nor correctly allocated)

CORE-13769

git-svn-id: file:///srv/svn/reactos/trunk@75833 97493ccd-5924-5043-b1f5-66cb403b36ce

rostests/kmtests/ntos_mm/NtCreateSection_drv.c

index dbbe7c9..f5082b2 100644 (file)
@@ -381,6 +381,14 @@ TestIrpHandler(
             }
             else
             {
+                PMDL Mdl;
+
+                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;
             }