Changeset 27655 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Mar 23, 2010 11:30:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/tstVDSnap.cpp
r27187 r27655 60 60 /** Numer of allocated blocks in the base image in percent */ 61 61 uint32_t uAllocatedBlocks; 62 /** Merge direction */ 63 bool fForward; 62 64 } VDSNAPTEST, *PVDSNAPTEST; 63 65 … … 338 340 uStartMerge, 339 341 uEndMerge); 340 rc = VDMerge(pVD, uStartMerge, uEndMerge, NULL); 342 if (pTest->fForward) 343 rc = VDMerge(pVD, uStartMerge, uEndMerge, NULL); 344 else 345 rc = VDMerge(pVD, uEndMerge, uStartMerge, NULL); 341 346 CHECK("VDMerge()"); 342 347 … … 409 414 Test.uChangeSegChance = 50; /* % */ 410 415 Test.uAllocatedBlocks = 50; /* 50% allocated */ 416 Test.fForward = true; 417 tstVDOpenCreateWriteMerge(&Test); 418 419 /* Same test with backwards merge */ 420 Test.fForward = false; 411 421 tstVDOpenCreateWriteMerge(&Test); 412 422
Note:
See TracChangeset
for help on using the changeset viewer.