Changeset 13835 in vbox for trunk/src/VBox/HostServices/SharedFolders/testcase
- Timestamp:
- Nov 5, 2008 2:34:43 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38826
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp
r8155 r13835 52 52 static int iDirFile = 0; 53 53 54 static const char *pszDirList[] = 54 static const char *pszDirList[] = 55 55 { 56 56 "c:", … … 59 59 }; 60 60 61 static const char *pszDirListC[] = 61 static const char *pszDirListC[] = 62 62 { 63 63 ".", … … 66 66 }; 67 67 68 static const char *pszDirListTestdir[] = 68 static const char *pszDirListTestdir[] = 69 69 { 70 70 ".", … … 85 85 }; 86 86 87 static const char *pszDirListSUBDIR[] = 87 static const char *pszDirListSUBDIR[] = 88 88 { 89 89 ".", … … 163 163 return VINF_SUCCESS; 164 164 } 165 165 166 166 switch(iDirList) 167 167 { … … 221 221 rc = RTDirOpenFiltered (&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT); 222 222 *(pszStartComponent-1) = RTPATH_DELIMITER; 223 if ( VBOX_FAILURE(rc))223 if (RT_FAILURE(rc)) 224 224 goto end; 225 225 … … 251 251 } 252 252 } 253 if ( VBOX_FAILURE(rc))253 if (RT_FAILURE(rc)) 254 254 Log(("vbsfCorrectCasing %s failed with %d\n", pszStartComponent, rc)); 255 255 … … 313 313 uint32_t len = strlen(pszFullPath); 314 314 char *src = pszFullPath + len - 1; 315 315 316 316 Log(("Handle case insenstive guest fs on top of host case sensitive fs for %s\n", pszFullPath)); 317 317 … … 337 337 src--; 338 338 } 339 Assert(*src == RTPATH_DELIMITER && VBOX_SUCCESS(rc));340 if ( *src == RTPATH_DELIMITER 341 && VBOX_SUCCESS(rc))339 Assert(*src == RTPATH_DELIMITER && RT_SUCCESS(rc)); 340 if ( *src == RTPATH_DELIMITER 341 && RT_SUCCESS(rc)) 342 342 { 343 343 src++; … … 366 366 else 367 367 rc = VERR_FILE_NOT_FOUND; 368 368 369 369 if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) 370 370 { 371 371 /* path component is invalid; try to correct the casing */ 372 372 rc = vbsfCorrectCasing(pszFullPath, src); 373 if ( VBOX_FAILURE(rc))373 if (RT_FAILURE(rc)) 374 374 { 375 375 if (!fEndOfString) … … 385 385 src = end + 1; 386 386 } 387 if ( VBOX_FAILURE(rc))387 if (RT_FAILURE(rc)) 388 388 Log(("Unable to find suitable component rc=%d\n", rc)); 389 389 } … … 395 395 *pszWildCardComponent = RTPATH_DELIMITER; 396 396 397 if ( VBOX_SUCCESS(rc))397 if (RT_SUCCESS(rc)) 398 398 Log(("New valid path %s\n", pszFullPath)); 399 399 else
Note:
See TracChangeset
for help on using the changeset viewer.