VirtualBox

Changeset 108652 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Mar 20, 2025 2:51:39 PM (6 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168065
Message:

Runtime/testcase/tstRTHeapOffset.cpp: Make it work for hosts where we don't know the host page size when building, bugref:10391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTHeapOffset.cpp

    r106061 r108652  
    5151#include <iprt/test.h>
    5252#include <iprt/time.h>
     53#include <iprt/system.h>
    5354
    5455
     
    7980     * Try allocate.
    8081     */
     82    uint32_t const cbPageSize = (uint32_t)RTSystemGetPageSize();
    8183    static struct TstHeapOffsetOps
    8284    {
     
    9799        {      1024,         32,    NULL, 10 },
    98100        {      1024,         32,    NULL, 12 },
    99         { PAGE_SIZE,  PAGE_SIZE,    NULL, 13 },  // 10
     101        { cbPageSize, cbPageSize,   NULL, 13 },  // 10
    100102        {      1024,         32,    NULL,  9 },
    101         { PAGE_SIZE,         32,    NULL, 11 },
    102         { PAGE_SIZE,  PAGE_SIZE,    NULL, 14 },
     103        { cbPageSize,        32,    NULL, 11 },
     104        { cbPageSize, cbPageSize,   NULL, 14 },
    103105        {        16,          0,    NULL, 15 },
    104106        {        9,           0,    NULL,  7 },  // 15
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette