VirtualBox

Changeset 41294 in vbox


Ignore:
Timestamp:
May 15, 2012 9:02:16 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77960
Message:

VMM/testcase: power off a VM before destroying it

Location:
trunk/src/VBox/VMM/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMMFork.cpp

    r38636 r41294  
    146146         * Cleanup.
    147147         */
     148        rc = VMR3PowerOff(pVM);
     149        if (!RT_SUCCESS(rc))
     150        {
     151            RTPrintf(TESTCASE ": error: failed to power off vm! rc=%Rrc\n", rc);
     152            rcErrors++;
     153        }
    148154        rc = VMR3Destroy(pVM);
    149155        if (!RT_SUCCESS(rc))
    150156        {
    151             RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc);
     157            RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%Rrc\n", rc);
    152158            rcErrors++;
    153159        }
     
    155161    else
    156162    {
    157         RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc);
     163        RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%Rrc\n", rc);
    158164        rcErrors++;
    159165    }
  • trunk/src/VBox/VMM/testcase/tstVMREQ.cpp

    r39084 r41294  
    284284         * Cleanup.
    285285         */
     286        rc = VMR3PowerOff(pVM);
     287        if (!RT_SUCCESS(rc))
     288        {
     289            RTPrintf(TESTCASE ": error: failed to power off vm! rc=%Rrc\n", rc);
     290            g_cErrors++;
     291        }
    286292        rc = VMR3Destroy(pVM);
    287293        if (!RT_SUCCESS(rc))
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