Test PR_GetMemMapAlignment. JS_1_7_ALPHA_MERGE
authorwtchang%redhat.com
Thu, 01 Jun 2006 21:05:32 +0000
changeset 3655 e59747053709752ef54d68d4875b34512b5da538
parent 3648 9a8a20a8f7bd6e3c27c63f8a422c5ec88017a7e0
child 3657 95f3f47bc95483d7d8614872f7b7540817ba71f3
push idunknown
push userunknown
push dateunknown
Test PR_GetMemMapAlignment.
pr/tests/system.c
--- a/pr/tests/system.c
+++ b/pr/tests/system.c
@@ -69,15 +69,16 @@ PRIntn main(PRIntn argc, char **argv)
         rv = PR_GetSystemInfo(cmd, info, SYS_INFO_BUFFER_LENGTH);
         if (PR_SUCCESS == rv) PR_fprintf(output, "%s: %s\n", tag[cmd], info);
         else PL_FPrintError(output, tag[cmd]);
     }
     PR_DELETE(info);
 
     PR_fprintf(output, "Host page size is %d\n", PR_GetPageSize());
     PR_fprintf(output, "Page shift is %d\n", PR_GetPageShift());
+    PR_fprintf(output, "Memory map alignment is %ld\n", PR_GetMemMapAlignment());
     PR_fprintf(output, "Number of processors is: %d\n", PR_GetNumberOfProcessors());
     PR_fprintf(output, "Physical memory size is: %llu\n", PR_GetPhysicalMemorySize());
 
     return 0;
 }  /* main */
 
 /* system.c */