Changeset 5700
- Timestamp:
- 11/12/07 11:25:54 (1 year ago)
- Files:
-
- trunk/src/testcase/tstRunTestcases.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
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

