VirtualBox

Changeset 38636 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 5, 2011 1:49:45 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73843
Message:

*,IPRT: Redid the ring-3 init to always convert the arguments to UTF-8.

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

Legend:

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

    r38324 r38636  
    615615    int rcRet = 1;
    616616    int rc;
    617     RTR3InitAndSUPLib();
     617    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    618618
    619619    /*
  • trunk/src/VBox/VMM/testcase/tstCFGM.cpp

    r35346 r38636  
    3939     * Init runtime.
    4040     */
    41     RTR3InitAndSUPLib();
     41    RTR3InitExeNoArguments(RTR3INIT_FLAGS_SUPLIB);
    4242
    4343    /*
  • trunk/src/VBox/VMM/testcase/tstCompiler.cpp

    r37955 r38636  
    225225int main()
    226226{
    227     int rc = RTR3Init();
     227    int rc = RTR3InitExeNoArguments(0);
    228228    if (RT_FAILURE(rc))
    229229        return RTMsgInitFailure(rc);
  • trunk/src/VBox/VMM/testcase/tstCompressionBenchmark.cpp

    r33550 r38636  
    233233int main(int argc, char **argv)
    234234{
    235     RTR3Init();
     235    RTR3InitExe(argc, &argv, 0);
    236236
    237237    /*
  • trunk/src/VBox/VMM/testcase/tstGlobalConfig.cpp

    r35346 r38636  
    4141int main(int argc, char **argv)
    4242{
    43     RTR3Init();
     43    RTR3InitExe(argc, &argv, 0);
    4444
    4545    /*
  • trunk/src/VBox/VMM/testcase/tstInstrEmul.cpp

    r35346 r38636  
    3636    int     rcRet = 0;                  /* error count. */
    3737
    38     RTR3Init();
     38    RTR3InitExe(argc, &argv, 0);
    3939    RTPrintf("tstInstrEmul: TESTING...\n");
    4040
  • trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp

    r35346 r38636  
    4444     * Init runtime.
    4545     */
    46     RTR3Init();
     46    RTR3InitExe(argc, &argv, 0);
    4747
    4848    /*
  • trunk/src/VBox/VMM/testcase/tstMicro.cpp

    r35346 r38636  
    339339    int     rcRet = 0;                  /* error count. */
    340340
    341     RTR3InitAndSUPLib();
     341    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    342342
    343343    /*
  • trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletion.cpp

    r35346 r38636  
    7575{
    7676    int rcRet = 0; /* error count */
    77     int rc = VINF_SUCCESS;
    7877    PPDMASYNCCOMPLETIONENDPOINT pEndpointSrc, pEndpointDst;
    7978
    80     RTR3InitAndSUPLib();
     79    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    8180
    8281    if (argc != 3)
     
    8786
    8887    PVM pVM;
    89     rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
     88    int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
    9089    if (RT_SUCCESS(rc))
    9190    {
  • trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp

    r35346 r38636  
    570570{
    571571    int rcRet = 0; /* error count */
    572     int rc = VINF_SUCCESS;
    573 
    574     RTR3InitAndSUPLib();
     572
     573    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    575574
    576575    PVM pVM;
    577     rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
     576    int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
    578577    if (RT_SUCCESS(rc))
    579578    {
  • trunk/src/VBox/VMM/testcase/tstSSM.cpp

    r35346 r38636  
    680680     * Init runtime and static data.
    681681     */
    682     RTR3InitAndSUPLib();
     682    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    683683    RTPrintf("tstSSM: TESTING...\n");
    684684    initBigMem();
  • trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp

    r35346 r38636  
    6565    int     rcRet = 0;                  /* error count. */
    6666
    67     RTR3InitAndSUPLib();
     67    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    6868
    6969    /*
  • trunk/src/VBox/VMM/testcase/tstVMM.cpp

    r35346 r38636  
    3131#include <iprt/getopt.h>
    3232#include <iprt/initterm.h>
     33#include <iprt/message.h>
    3334#include <iprt/semaphore.h>
    3435#include <iprt/stream.h>
     
    180181     * Init runtime and the test environment.
    181182     */
    182     int rc = RTR3InitAndSUPLib();
     183    int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    183184    if (RT_FAILURE(rc))
    184     {
    185         RTPrintf("tstVMM: RTR3InitAndSUPLib failed: %Rrc\n", rc);
    186         return 1;
    187     }
     185        return RTMsgInitFailure(rc);
    188186    RTTEST hTest;
    189187    rc = RTTestCreate("tstVMM", &hTest);
  • trunk/src/VBox/VMM/testcase/tstVMMFork.cpp

    r35346 r38636  
    4949     * Initialize the runtime.
    5050     */
    51     RTR3InitAndSUPLib();
     51    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    5252
    5353#ifndef AUTO_TEST_ARGS
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r35346 r38636  
    145145    RTTEST hTest;
    146146    int rc;
    147     if (    RT_FAILURE(rc = RTR3Init())
     147    if (    RT_FAILURE(rc = RTR3InitExeNoArguments(0))
    148148        ||  RT_FAILURE(rc = RTTestCreate("tstVMMR0CallHost-1", &hTest)))
    149149    {
  • trunk/src/VBox/VMM/testcase/tstVMREQ.cpp

    r35346 r38636  
    208208int main(int argc, char **argv)
    209209{
    210     RTR3InitAndSUPLib();
     210    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    211211    RTPrintf(TESTCASE ": TESTING...\n");
    212212
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