Changeset 45400 in vbox for trunk/src/VBox/Runtime/testcase/tstRTPath.cpp
- Timestamp:
- Apr 8, 2013 12:08:00 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84828
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTPath.cpp
r45394 r45400 87 87 }; 88 88 89 char szPath1[RTPATH_MAX]; 89 90 union 90 91 { … … 116 117 s_aTests[i].offSuffix, u.Parsed.offSuffix, 117 118 s_aTests[i].cchPath, u.Parsed.cchPath); 119 } 120 else 121 { 122 rc = RTPathParsedReassemble(s_aTests[i].pszPath, &u.Parsed, s_aTests[i].fFlags & ~RTPATH_STR_F_MIDDLE, 123 szPath1, sizeof(szPath1)); 124 if (rc == VINF_SUCCESS) 125 { 126 RTTESTI_CHECK_MSG(strlen(szPath1) == s_aTests[i].cchPath, ("%s\n", szPath1)); 127 if ( !(u.Parsed.fProps & RTPATH_PROP_EXTRA_SLASHES) 128 && (s_aTests[i].fFlags & RTPATH_STR_F_STYLE_MASK) != RTPATH_STR_F_STYLE_DOS) 129 RTTESTI_CHECK_MSG(strcmp(szPath1, s_aTests[i].pszPath) == 0, ("%s\n", szPath1)); 130 } 131 else 132 RTTestIFailed("RTPathParsedReassemble -> %Rrc", rc); 118 133 } 119 134 } … … 162 177 RTPathSplitFree(pSplit); 163 178 } 179 180 rc = RTPathSplitReassemble(&u.Split, s_aTests[i].fFlags & ~RTPATH_STR_F_MIDDLE, szPath1, sizeof(szPath1)); 181 if (rc == VINF_SUCCESS) 182 { 183 RTTESTI_CHECK_MSG(strlen(szPath1) == s_aTests[i].cchPath, ("%s\n", szPath1)); 184 if ( !(u.Parsed.fProps & RTPATH_PROP_EXTRA_SLASHES) 185 && (s_aTests[i].fFlags & RTPATH_STR_F_STYLE_MASK) != RTPATH_STR_F_STYLE_DOS) 186 RTTESTI_CHECK_MSG(strcmp(szPath1, s_aTests[i].pszPath) == 0, ("%s\n", szPath1)); 187 } 188 else 189 RTTestIFailed("RTPathSplitReassemble -> %Rrc", rc); 164 190 } 165 191 }
Note:
See TracChangeset
for help on using the changeset viewer.