Commit in reactos/regtests/kmregtests/tests on MAIN
mm-1.c+20-181.1 -> 1.2
Correct test of value returned from MmQuerySystemSize

reactos/regtests/kmregtests/tests
mm-1.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- mm-1.c	2 Jan 2004 03:23:25 -0000	1.1
+++ mm-1.c	8 Apr 2004 20:50:02 -0000	1.2
@@ -18,7 +18,7 @@
                                      HighestAcceptableAddress);
   if (pmem1 == 0)
   {
-    DbgPrint("MmAllocateContiguousMemory() for pmem1 failed\n");
+    strcpy(Buffer, "MmAllocateContiguousMemory() for pmem1 failed\n");
     return TS_FAILED;
   }
 
@@ -33,7 +33,7 @@
                                                  MmNonCached);
   if (pmem2 == 0)
   {
-    DbgPrint("MmAllocateContiguousMemorySpecifyCache() for pmem2 failed\n");
+    strcpy(Buffer, "MmAllocateContiguousMemorySpecifyCache() for pmem2 failed\n");
     return TS_FAILED;
   }
 
@@ -48,7 +48,7 @@
                                                  MmCached);
   if (pmem3 == 0)
   {
-    DbgPrint("MmAllocateContiguousMemorySpecifyCache() for pmem3 failed\n");
+    strcpy(Buffer, "MmAllocateContiguousMemorySpecifyCache() for pmem3 failed\n");
     return TS_FAILED;
   }
 
@@ -64,7 +64,7 @@
                                                  MmWriteCombined);
   if (pmem4 == 0)
   {
-    DbgPrint("MmAllocateContiguousMemorySpecifyCache() for pmem4 failed\n");
+    strcpy(Buffer, "MmAllocateContiguousMemorySpecifyCache() for pmem4 failed\n");
     return TS_FAILED;
   }
 
@@ -72,7 +72,7 @@
   pmem5 = MmAllocateNonCachedMemory(AllocSize5);
   if (pmem5 == 0)
   {
-    DbgPrint("MmAllocateNonCachedMemory() for pmem5 failed\n");
+    strcpy(Buffer, "MmAllocateNonCachedMemory() for pmem5 failed\n");
     return TS_FAILED;
   }
 
@@ -80,68 +80,70 @@
   PhysicalAddress = MmGetPhysicalAddress(pmem1);
   if (PhysicalAddress.QuadPart == 0)
   {
-    DbgPrint("MmGetPhysicalAddress() failed\n");
+    strcpy(Buffer, "MmGetPhysicalAddress() failed\n");
     return TS_FAILED;
   }
 
   if (MmIsAddressValid(pmem1) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem1\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem1\n");
     return TS_FAILED;
   }
   if (MmIsAddressValid(pmem2) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem2\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem2\n");
     return TS_FAILED;
   }
   if (MmIsAddressValid(pmem3) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem3\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem3\n");
     return TS_FAILED;
   }
   if (MmIsAddressValid(pmem4) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem4\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem4\n");
     return TS_FAILED;
   }
   if (MmIsAddressValid(pmem5) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem5\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem5\n");
     return TS_FAILED;
   }
 
   if (MmIsNonPagedSystemAddressValid(pmem1) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem1\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem1\n");
     return TS_FAILED;
   }
   if (MmIsNonPagedSystemAddressValid(pmem2) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem2\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem2\n");
     return TS_FAILED;
   }
   if (MmIsNonPagedSystemAddressValid(pmem3) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem3\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem3\n");
     return TS_FAILED;
   }
   if (MmIsNonPagedSystemAddressValid(pmem4) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem4\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem4\n");
     return TS_FAILED;
   }
   if (MmIsNonPagedSystemAddressValid(pmem5) == FALSE)
   {
-    DbgPrint("MmIsAddressValid() failed for pmem5\n");
+    strcpy(Buffer, "MmIsAddressValid() failed for pmem5\n");
     return TS_FAILED;
   }
 
   /* Misc functions */
   Server = MmIsThisAnNtAsSystem();
   MemSize = MmQuerySystemSize();
-  if (MemSize == 0)
+  if (MemSize != MmSmallSystem &&
+      MemSize != MmMediumSystem &&
+      MemSize != MmLargeSystem)
   {
-    DbgPrint("MmQuerySystemSize() failed\n");
+    strcpy(Buffer, "MmQuerySystemSize() failed\n");
     return TS_FAILED;
   }
 
CVSspam 0.2.8