VirtualBox

Changeset 5700 in vbox


Ignore:
Timestamp:
Nov 12, 2007 10:25:54 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26047
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
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