Changeset 5699 in vbox
- Timestamp:
- Nov 12, 2007 9:44:11 AM (17 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/tstVDI.cpp
r4071 r5699 101 101 RTR3Init(); 102 102 103 RTFileDelete("t stVdiBase.vdi");104 RTFileDelete("t stVdiDiff.vdi");103 RTFileDelete("tmpVdiBase.vdi"); 104 RTFileDelete("tmpVdiDiff.vdi"); 105 105 106 int rc = dotest("t stVdiBase.vdi", "tstVdiDiff.vdi");106 int rc = dotest("tmpVdiBase.vdi", "tmpVdiDiff.vdi"); 107 107 if (!rc) 108 108 RTPrintf("tstVDI: SUCCESS\n"); … … 110 110 RTPrintf("tstVDI: FAILURE\n"); 111 111 112 RTFileDelete("t stVdiBase.vdi");113 RTFileDelete("t stVdiDiff.vdi");112 RTFileDelete("tmpVdiBase.vdi"); 113 RTFileDelete("tmpVdiDiff.vdi"); 114 114 return !!rc; 115 115 } -
trunk/src/testcase/tstRunTestcases.cpp
r4071 r5699 28 28 #include <iprt/thread.h> 29 29 #include <iprt/err.h> 30 #include <iprt/env.h> 30 31 31 32 … … 126 127 static void Process(const char *pszFilter, const char *pszDir) 127 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 } 128 135 /* 129 136 * Open and enumerate the directory. 130 137 */ 131 138 PRTDIR pDir; 132 intrc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT);139 rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT); 133 140 if (RT_SUCCESS(rc)) 134 141 { … … 167 174 papszArgs[1] = NULL; 168 175 RTPROCESS Process; 169 rc = RTProcCreate(pszTestcase, papszArgs, NULL, 0, &Process);176 rc = RTProcCreate(pszTestcase, papszArgs, env, 0, &Process); 170 177 if (RT_SUCCESS(rc)) 171 178 { … … 237 244 else 238 245 RTPrintf("tstRunTestcases: opening '%s' -> %Rrc\n", pszDir, rc); 246 RTEnvDestroy(env); 239 247 } 240 248
Note:
See TracChangeset
for help on using the changeset viewer.