[KMTESTS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 15 Sep 2015 16:46:28 +0000 (16:46 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 15 Sep 2015 16:46:28 +0000 (16:46 +0000)
- Keep the number of tests constant in MmMdl because Testman

svn path=/trunk/; revision=69243

rostests/kmtests/ntos_mm/MmMdl.c

index 7afd4a6..b3e8a81 100644 (file)
@@ -120,8 +120,11 @@ TestMmAllocatePagesForMdl(VOID)
         ok(MdlPageCount < 2UL * 1024 * 1024 * 1024 / PAGE_SIZE, "MdlPageCount = %lu\n", MdlPageCount);
         for (i = 0; i < MdlPageCount; i++)
         {
         ok(MdlPageCount < 2UL * 1024 * 1024 * 1024 / PAGE_SIZE, "MdlPageCount = %lu\n", MdlPageCount);
         for (i = 0; i < MdlPageCount; i++)
         {
-            ok(MdlPages[i] != 0 && MdlPages[i] != (PFN_NUMBER)-1,
-               "MdlPages[%lu] = 0x%I64x\n", i, (ULONGLONG)MdlPages[i]);
+            if (MdlPages[i] == 0 ||
+                MdlPages[i] == (PFN_NUMBER)-1)
+            {
+                ok(0, "MdlPages[%lu] = 0x%I64x\n", i, (ULONGLONG)MdlPages[i]);
+            }
         }
         SystemVa = MmMapLockedPagesSpecifyCache(Mdl,
                                                 KernelMode,
         }
         SystemVa = MmMapLockedPagesSpecifyCache(Mdl,
                                                 KernelMode,