Changeset 52378 in vbox for trunk/src/VBox/Storage/testcase
- Timestamp:
- Aug 14, 2014 11:44:04 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95519
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/tstVDIo.cpp
r52371 r52378 34 34 #include <iprt/critsect.h> 35 35 #include <iprt/test.h> 36 #include <iprt/system.h> 36 37 37 38 #include "VDMemDisk.h" … … 2798 2799 static void tstVDIoRunBuiltinTests(void) 2799 2800 { 2801 /* 2802 * We need quite a bit of RAM for the builtin tests. Skip it if there 2803 * is not enough free RAM available. 2804 */ 2805 uint64_t cbFree = 0; 2806 int rc = RTSystemQueryAvailableRam(&cbFree); 2807 if ( RT_FAILURE(rc) 2808 || cbFree < (UINT64_C(6) * _1G)) 2809 { 2810 RTStrmPrintf(g_pStdErr, "tstVDIo: fatal error: Failed to query available RAM or not enough available, skipping (rc=%Rrc cbFree=%llu)\n", 2811 rc, cbFree); 2812 return; 2813 } 2814 2800 2815 for (unsigned i = 0; i < g_cVDIoTests; i++) 2801 2816 {
Note:
See TracChangeset
for help on using the changeset viewer.