VirtualBox

Changeset 5700

Show
Ignore:
Timestamp:
11/12/07 11:25:54 (1 year ago)
Author:
vboxsync
Message:

r=bird: Passing RTENV_DEFAULT to RTProcCreate should be sufficient.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/testcase/tstRunTestcases.cpp

    r5699 r5700  
    127127static void Process(const char *pszFilter, const char *pszDir) 
    128128{ 
    129     RTENV env; 
    130     int rc = RTEnvClone(&env, RTENV_DEFAULT); 
    131     if (RT_FAILURE(rc)) { 
    132         RTPrintf("tstRunTestcases: Failed to clone environment -> %Rrc\n", rc); 
    133         return; 
    134     } 
    135129    /* 
    136130     * Open and enumerate the directory. 
    137131     */ 
    138132    PRTDIR pDir; 
    139     rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT); 
     133    int rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT); 
    140134    if (RT_SUCCESS(rc)) 
    141135    { 
     
    174168                papszArgs[1] = NULL; 
    175169                RTPROCESS Process; 
    176                 rc = RTProcCreate(pszTestcase, papszArgs, env, 0, &Process); 
     170                rc = RTProcCreate(pszTestcase, papszArgs, RTENV_DEFAULT, 0, &Process); 
    177171                if (RT_SUCCESS(rc)) 
    178172                { 
     
    244238    else 
    245239        RTPrintf("tstRunTestcases: opening '%s' -> %Rrc\n", pszDir, rc); 
    246     RTEnvDestroy(env); 
    247240} 
    248241 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy