Changeset 5700 in vbox
- Timestamp:
- Nov 12, 2007 10:25:54 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 26047
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/testcase/tstRunTestcases.cpp
r5699 r5700 127 127 static void Process(const char *pszFilter, const char *pszDir) 128 128 { 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 }135 129 /* 136 130 * Open and enumerate the directory. 137 131 */ 138 132 PRTDIR pDir; 139 rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT);133 int rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT); 140 134 if (RT_SUCCESS(rc)) 141 135 { … … 174 168 papszArgs[1] = NULL; 175 169 RTPROCESS Process; 176 rc = RTProcCreate(pszTestcase, papszArgs, env, 0, &Process);170 rc = RTProcCreate(pszTestcase, papszArgs, RTENV_DEFAULT, 0, &Process); 177 171 if (RT_SUCCESS(rc)) 178 172 { … … 244 238 else 245 239 RTPrintf("tstRunTestcases: opening '%s' -> %Rrc\n", pszDir, rc); 246 RTEnvDestroy(env);247 240 } 248 241
Note:
See TracChangeset
for help on using the changeset viewer.