From 891930d175ee257a1b1e24ffd229e35cd4d931f4 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 15 Sep 2017 12:10:59 +0000 Subject: [PATCH] [KMTESTS:CC] [KMTESTS:MM] Also test the paging IO flag of the MDL svn path=/trunk/; revision=75845 --- rostests/kmtests/ntos_cc/CcCopyRead_drv.c | 1 + rostests/kmtests/ntos_mm/NtCreateSection_drv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/rostests/kmtests/ntos_cc/CcCopyRead_drv.c b/rostests/kmtests/ntos_cc/CcCopyRead_drv.c index 94d73722280..cc98945a04c 100644 --- a/rostests/kmtests/ntos_cc/CcCopyRead_drv.c +++ b/rostests/kmtests/ntos_cc/CcCopyRead_drv.c @@ -289,6 +289,7 @@ TestIrpHandler( 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((Mdl->MdlFlags & MDL_IO_PAGE_READ) != 0, "Non paging IO\n"); ok((Irp->Flags & IRP_PAGING_IO) != 0, "Non paging IO\n"); } diff --git a/rostests/kmtests/ntos_mm/NtCreateSection_drv.c b/rostests/kmtests/ntos_mm/NtCreateSection_drv.c index f5082b23ee7..5642ea5b2c6 100644 --- a/rostests/kmtests/ntos_mm/NtCreateSection_drv.c +++ b/rostests/kmtests/ntos_mm/NtCreateSection_drv.c @@ -387,6 +387,7 @@ TestIrpHandler( 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((Mdl->MdlFlags & MDL_IO_PAGE_READ) == 0, "Paging IO for reading\n"); ok((Irp->Flags & IRP_PAGING_IO) != 0, "Non paging IO\n"); Status = STATUS_SUCCESS;