VirtualBox

Changeset 108649 in vbox


Ignore:
Timestamp:
Mar 20, 2025 2:41:09 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168062
Message:

Runtime/testcase/tstRTFileAio.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/tstRTFileAio.cpp

    r106061 r108649  
    4545#include <iprt/param.h>
    4646#include <iprt/string.h>
     47#include <iprt/system.h>
    4748#include <iprt/test.h>
    4849
     
    7879    for (unsigned i = 0; i < cMaxReqsInFlight; i++)
    7980    {
    80         RTTESTI_CHECK_RC_OK_RETV(RTTestGuardedAlloc(g_hTest, cbTestBuf, PAGE_SIZE, true /*fHead*/, &papvBuf[i]));
     81        RTTESTI_CHECK_RC_OK_RETV(RTTestGuardedAlloc(g_hTest, cbTestBuf, RTSystemGetPageSize(), true /*fHead*/, &papvBuf[i]));
    8182        if (fWrite)
    8283            memcpy(papvBuf[i], pvTestBuf, cbTestBuf);
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