VirtualBox

Changeset 46318 in vbox for trunk


Ignore:
Timestamp:
May 30, 2013 8:43:46 AM (12 years ago)
Author:
vboxsync
Message:

Runtime/testcase/tstRTSystemQueryOsInfo: added output of RTSystemQueryTotalRam() and RTSystemQueryAvailableRam()

File:
1 edited

Legend:

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

    r44528 r46318  
    6666    RTTestIPrintf(RTTESTLVL_ALWAYS, "SERVICE_PACK: \"%s\", rc=%Rrc\n", szInfo, rc);
    6767
     68    uint64_t cbTotal;
     69    rc = RTSystemQueryTotalRam(&cbTotal);
     70    RTTestIPrintf(RTTESTLVL_ALWAYS, "Total RAM: %'RU64 Bytes (%RU64 KB, %RU64 MB)\n",
     71                  cbTotal, cbTotal / _1K, cbTotal / _1M);
     72
     73    uint64_t cbAvailable;
     74    rc = RTSystemQueryAvailableRam(&cbAvailable);
     75    RTTestIPrintf(RTTESTLVL_ALWAYS, "Available RAM: %'RU64 Bytes (%RU64 KB, %RU64 MB)\n",
     76                  cbAvailable, cbAvailable / _1K, cbAvailable / _1M);
     77
    6878    /*
    6979     * Check that unsupported stuff is terminated correctly.
Note: See TracChangeset for help on using the changeset viewer.

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