VirtualBox

Changeset 46299 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
May 28, 2013 3:29:28 PM (12 years ago)
Author:
vboxsync
Message:

Use new/old RTTest APIs.

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

Legend:

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

    r45664 r46299  
    194194     * Init runtime and the test environment.
    195195     */
    196     int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    197     if (RT_FAILURE(rc))
    198         return RTMsgInitFailure(rc);
    199196    RTTEST hTest;
    200     rc = RTTestCreate("tstVMM", &hTest);
    201     if (RT_FAILURE(rc))
    202     {
    203         RTPrintf("tstVMM: RTTestCreate failed: %Rrc\n", rc);
    204         return 1;
    205     }
     197    RTEXITCODE rcExit = RTTestInitExAndCreate(argc, &argv, RTR3INIT_FLAGS_SUPLIB, "tstVMM", &hTest);
     198    if (rcExit != RTEXITCODE_SUCCESS)
     199        return rcExit;
    206200
    207201    /*
     
    261255    PVM pVM;
    262256    PUVM pUVM;
    263     rc = VMR3Create(g_cCpus, NULL, NULL, NULL, tstVMMConfigConstructor, NULL, &pVM, &pUVM);
     257    int rc = VMR3Create(g_cCpus, NULL, NULL, NULL, tstVMMConfigConstructor, NULL, &pVM, &pUVM);
    264258    if (RT_SUCCESS(rc))
    265259    {
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r45828 r46299  
    146146     */
    147147    RTTEST hTest;
    148     int rc;
    149     if (    RT_FAILURE(rc = RTR3InitExeNoArguments(0))
    150         ||  RT_FAILURE(rc = RTTestCreate("tstVMMR0CallHost-1", &hTest)))
    151     {
    152         RTStrmPrintf(g_pStdErr, "tstVMMR0CallHost-1: Fatal error during init: %Rrc\n", rc);
    153         return 1;
    154     }
     148    RTEXITCODE rcExit = RTTestInitAndCreate("tstVMMR0CallHost-1", &hTest);
     149    if (rcExit != RTEXITCODE_SUCCESS)
     150        return rcExit;
    155151    RTTestBanner(hTest);
    156152
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