Changeset 96850 in vbox
- Timestamp:
- Sep 26, 2022 4:39:32 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstOVF.cpp
r96849 r96850 232 232 pcszType = "sound"; 233 233 break; 234 235 234 235 case VirtualSystemDescriptionType_SettingsFile: 236 236 pcszType = "settings"; 237 237 break; 238 239 238 239 case VirtualSystemDescriptionType_BaseFolder: 240 240 pcszType = "basefolder"; 241 241 break; 242 243 242 243 case VirtualSystemDescriptionType_PrimaryGroup: 244 244 pcszType = "primarygroup"; 245 245 break; … … 294 294 { 295 295 char szSrc[RTPATH_MAX]; 296 char szDst[RTPATH_MAX];297 296 RTPathExecDir(szSrc, sizeof(szSrc)); 298 297 RTPathAppend(szSrc, sizeof(szSrc), "ovf-testcases/ovf-dummy.vmdk"); 298 299 char szDst[RTPATH_MAX]; 299 300 RTPathExecDir(szDst, sizeof(szDst)); 300 301 RTPathAppend(szDst, sizeof(szDst), pcszDest); 301 302 RTPrintf("%s: copying ovf-dummy.vmdk to \"%s\"...\n", pcszPrefix, pcszDest); 302 303 303 if (FILE *file = fopen(pcszDest, "r")) 304 { 305 fclose(file); 306 RTFileDelete(pcszDest); 307 } 304 /* Delete the destination file if it exists or RTFileCopy will fail. */ 305 if (RTFileExists(szDst)) 306 { 307 RTPrintf("Deleting file %s...\n", szDst); 308 RTFileDelete(szDst); 309 } 308 310 309 311 int vrc = RTFileCopy(szSrc, szDst);
Note:
See TracChangeset
for help on using the changeset viewer.