|
static void | check_result (BOOLEAN bOK, const char *pszErr) |
|
static void | test2 (LPCWSTR pwsz, LPCWSTR pwszExpected, LPCWSTR pwszExpectedPartName) |
|
static void | test (const char *psz, const char *pszExpected, const char *pszExpectedPartName) |
|
static void | InitDirComponents (DirComponents *p) |
|
| test (PREP1 "C:", "C:", "C:") |
|
| test (PREP2 "C:", "C:", "C:") |
|
| test (PREP0 "C:\\", "C:\\", NULL) |
|
| test (PREP1 "C:\\", "C:\\", NULL) |
|
| test (PREP2 "C:\\", "C:\\", NULL) |
|
| test (PREP0 "C:\\foo", "C:\\foo", "foo") |
|
| test (PREP1 "C:\\foo", "C:\\foo", "foo") |
|
| test (PREP2 "C:\\foo", "C:\\foo", "foo") |
|
| test (PREP0 "C:\\foo\\", "C:\\foo\\", NULL) |
|
| test (PREP1 "C:\\foo\\", "C:\\foo\\", NULL) |
|
| test (PREP2 "C:\\foo\\", "C:\\foo\\", NULL) |
|
| test (PREP0 "C:\\foo\\bar", "C:\\foo\\bar", "bar") |
|
| test (PREP1 "C:\\foo\\bar", "C:\\foo\\bar", "bar") |
|
| test (PREP2 "C:\\foo\\bar", "C:\\foo\\bar", "bar") |
|
| test (PREP0 "C:\\foo\\bar\\", "C:\\foo\\bar\\", NULL) |
|
| test (PREP1 "C:\\foo\\bar\\", "C:\\foo\\bar\\", NULL) |
|
| test (PREP2 "C:\\foo\\bar\\", "C:\\foo\\bar\\", NULL) |
|
| test (PREP0 "C:\\foo\\..", "C:\\", NULL) |
|
| test (PREP1 "C:\\foo\\..", "C:", "C:") |
|
| test (PREP2 "C:\\foo\\..", "C:\\foo\\..", "..") |
|
| test (PREP0 "C:\\foo\\..\\", "C:\\", NULL) |
|
| test (PREP1 "C:\\foo\\..\\", "C:\\", NULL) |
|
| test (PREP2 "C:\\foo\\..\\", "C:\\foo\\..\\", NULL) |
|
| test (PREP0 "C:\\foo.", "C:\\foo", "foo") |
|
| test (PREP1 "C:\\foo.", "C:\\foo", "foo") |
|
| test (PREP2 "C:\\foo.", "C:\\foo.", "foo.") |
|
| test (PREP0 "C:\\f\\b\\..", "C:\\f", "f") |
|
| test (PREP1 "C:\\f\\b\\..", "C:\\f", "f") |
|
| test (PREP2 "C:\\f\\b\\..", "C:\\f\\b\\..", "..") |
|
| test (PREP0 "C:\\f\\b\\..\\", "C:\\f\\", NULL) |
|
| test (PREP1 "C:\\f\\b\\..\\", "C:\\f\\", NULL) |
|
| test (PREP2 "C:\\f\\b\\..\\", "C:\\f\\b\\..\\", NULL) |
|
| sprintf (szTmp, "%s%s", cd.szCDPlusSlash, "foo") |
|
| test (PREP0 "foo", szTmp, "foo") |
|
| test (PREP1 "foo", "foo", "foo") |
|
| test (PREP2 "foo", "foo", "foo") |
|
| sprintf (szTmp, "%s%s", cd.szCDPlusSlash, "foo\\") |
|
| test (PREP0 "foo\\", szTmp, NULL) |
|
| test (PREP1 "foo\\", "foo\\", NULL) |
|
| test (PREP2 "foo\\", "foo\\", NULL) |
|
| test (PREP0 ".", cd.szCD, cd.pszLastCDComponent) |
|
| test (PREP1 ".", "", NULL) |
|
| test (PREP2 ".", ".", ".") |
|
| test (PREP0 ".\\", cd.szCDPlusSlash, NULL) |
|
| test (PREP1 ".\\", "", NULL) |
|
| test (PREP2 ".\\", ".\\", NULL) |
|
| test (PREP0 ".\\.", cd.szCD, cd.pszLastCDComponent) |
|
| test (PREP1 ".\\.", "", NULL) |
|
| test (PREP2 ".\\.", ".\\.", ".") |
|
| test (PREP0 ".\\..", cd.pszPD, cd.pszNextLastCDComponent) |
|
| test (PREP1 ".\\..", "", NULL) |
|
| test (PREP2 ".\\..", ".\\..", "..") |
|
| test (PREP0 "..", cd.pszPD, cd.pszNextLastCDComponent) |
|
| test (PREP1 "..", "", NULL) |
|
| test (PREP2 "..", "..", "..") |
|
| test (PREP0 "..\\", cd.pszPDPlusSlash, NULL) |
|
| test (PREP1 "..\\", "", NULL) |
|
| test (PREP2 "..\\", "..\\", NULL) |
|
| test (PREP0 "...", cd.szCDPlusSlash, NULL) |
|
| test (PREP1 "...", "", NULL) |
|
| test (PREP2 "...", "...", "...") |
|
| test (PREP0 "NUL", "NUL", NULL) |
|
| test (PREP1 "NUL", "NUL", "NUL") |
|
| test (PREP2 "NUL", "NUL", "NUL") |
|
| test (PREP0 "NUL:", "NUL", NULL) |
|
| test (PREP1 "NUL:", "NUL:", "NUL:") |
|
| test (PREP2 "NUL:", "NUL:", "NUL:") |
|
| test (PREP0 "CON", "CON", NULL) |
|
| test (PREP2 "CON", "CON", "CON") |
|
| test (PREP0 "CON:", "CON", NULL) |
|
| test (PREP1 "CON:", "CON:", "CON:") |
|
| test (PREP2 "CON:", "CON:", "CON:") |
|
| sprintf (szTmp, "%s\\%s", cd.szCD, "NUL:\\") |
|
| test (PREP0 "NUL:\\", szTmp, NULL) |
|
| test (PREP1 "NUL:\\", "NUL:\\", NULL) |
|
| test (PREP2 "NUL:\\", "NUL:\\", NULL) |
|
| test (PREP0 "C:NUL", "NUL", NULL) |
|
| test (PREP1 "C:NUL", "C:NUL", "C:NUL") |
|
| test (PREP2 "C:NUL", "C:NUL", "C:NUL") |
|
| test (PREP0 "C:\\NUL", "NUL", NULL) |
|
| test (PREP1 "C:\\NUL", "C:\\NUL", "NUL") |
|
| test (PREP2 "C:\\NUL", "C:\\NUL", "NUL") |
|
| test (PREP0 "C:\\NUL\\", "C:\\NUL\\", NULL) |
|
| test (PREP1 "C:\\NUL\\", "C:\\NUL\\", NULL) |
|
| test (PREP2 "C:\\NUL\\", "C:\\NUL\\", NULL) |
|
| test (PREP0 "\\", cd.szCurDriveSlash, NULL) |
|
| test (PREP1 "\\", "", NULL) |
|
| test (PREP2 "\\", "\\", NULL) |
|
| test (PREP0 "\\.", cd.szCurDriveSlash, NULL) |
|
| test (PREP1 "\\.", "", NULL) |
|
| test (PREP2 "\\.", "\\.", ".") |
|
| test (PREP0 "\\..", cd.szCurDriveSlash, NULL) |
|
| test (PREP1 "\\..", "", NULL) |
|
| test (PREP2 "\\..", "\\..", "..") |
|
| test (PREP0 "\\...", cd.szCurDriveSlash, NULL) |
|
| test (PREP1 "\\...", "", NULL) |
|
| test (PREP2 "\\...", "\\...", "...") |
|
| sprintf (szTmp, "%s%s", cd.szCurDrive, "\\C:") |
|
| test (PREP0 "\\C:", szTmp, "C:") |
|
| test (PREP1 "\\C:", "C:", "C:") |
|
| test (PREP2 "\\C:", "\\C:", "C:") |
|
| sprintf (szTmp, "%s%s", cd.szCurDrive, "\\C:\\") |
|
| test (PREP0 "\\C:\\", szTmp, NULL) |
|
| test (PREP1 "\\C:\\", "C:\\", NULL) |
|
| test (PREP2 "\\C:\\", "\\C:\\", NULL) |
|
| test (PREP0 "\\\\", "UNC\\", NULL) |
|
| test (PREP1 "\\\\", "", NULL) |
|
| test (PREP2 "\\\\", "\\\\", NULL) |
|
| test (PREP0 "\\\\\\", "UNC\\\\", NULL) |
|
| test (PREP1 "\\\\\\", "", NULL) |
|
| test (PREP2 "\\\\\\", "\\\\\\", NULL) |
|
| test (PREP0 "\\\\foo", "UNC\\foo", NULL) |
|
| test (PREP1 "\\\\foo", "foo", "foo") |
|
| test (PREP2 "\\\\foo", "\\\\foo", "foo") |
|
| test (PREP0 "\\\\foo\\..", "UNC\\foo\\", NULL) |
|
| test (PREP1 "\\\\foo\\..", "", NULL) |
|
| test (PREP2 "\\\\foo\\..", "\\\\foo\\..", "..") |
|
| test (PREP0 "\\\\foo\\", "UNC\\foo\\", NULL) |
|
| test (PREP1 "\\\\foo\\", "foo\\", NULL) |
|
| test (PREP2 "\\\\foo\\", "\\\\foo\\", NULL) |
|
| test (PREP0 "\\\\f\\b", "UNC\\f\\b", NULL) |
|
| test (PREP1 "\\\\f\\b", "f\\b", "b") |
|
| test (PREP2 "\\\\f\\b", "\\\\f\\b", "b") |
|
| test (PREP0 "\\\\f\\b\\", "UNC\\f\\b\\", NULL) |
|
| test (PREP1 "\\\\f\\b\\", "f\\b\\", NULL) |
|
| test (PREP2 "\\\\f\\b\\", "\\\\f\\b\\", NULL) |
|
| test (PREP0 "\\\\f\\b\\..", "UNC\\f\\b", NULL) |
|
| test (PREP1 "\\\\f\\b\\..", "f", "f") |
|
| test (PREP2 "\\\\f\\b\\..", "\\\\f\\b\\..", "..") |
|
| test (PREP0 "\\\\C:", "UNC\\C:", NULL) |
|
| test (PREP1 "\\\\C:", "C:", "C:") |
|
| test (PREP2 "\\\\C:", "\\\\C:", "C:") |
|
| test (PREP0 "\\\\C:\\", "UNC\\C:\\", NULL) |
|
| test (PREP1 "\\\\C:\\", "C:\\", NULL) |
|
| test (PREP2 "\\\\C:\\", "\\\\C:\\", NULL) |
|
| test (PREP0 "\\\\NUL", "UNC\\NUL", NULL) |
|
| test (PREP1 "\\\\NUL", "NUL", "NUL") |
|
| test (PREP2 "\\\\NUL", "\\\\NUL", "NUL") |
|
| test (PREP0 "\\\\NUL:", "UNC\\NUL:", NULL) |
|
| test (PREP1 "\\\\NUL:", "NUL:", "NUL:") |
|
| test (PREP2 "\\\\NUL:", "\\\\NUL:", "NUL:") |
|
| test (PREP0 "\\\\NUL:\\", "UNC\\NUL:\\", NULL) |
|
| test (PREP1 "\\\\NUL:\\", "NUL:\\", NULL) |
|
| test (PREP2 "\\\\NUL:\\", "\\\\NUL:\\", NULL) |
|
| test (PREP0 "//", "UNC\\", NULL) |
|
| test (PREP1 "//", "", NULL) |
|
| test (PREP2 "//", "//", "//") |
|
| test (PREP0 "//C:", "UNC\\C:", NULL) |
|
| test (PREP1 "//C:", "C:", "C:") |
|
| test (PREP2 "//C:", "//C:", "//C:") |
|
| test (PREP0 "//C:/", "UNC\\C:\\", NULL) |
|
| test (PREP1 "//C:/", "C:\\", NULL) |
|
| test (PREP2 "//C:/", "//C:/", "//C:/") |
|
| test (PREP0 "//.", "", NULL) |
|
| test (PREP1 "//.", "", NULL) |
|
| test (PREP2 "//.", "//.", "//.") |
|
| test (PREP0 "//..", "UNC\\", NULL) |
|
| test (PREP1 "//..", "", NULL) |
|
| test (PREP2 "//..", "//..", "//..") |
|
| test (PREP0 "/./", cd.szCurDriveSlash, NULL) |
|
| test (PREP1 "/./", "", NULL) |
|
| test (PREP2 "/./", "/./", "/./") |
|
| test (PREP0 "//./", "", NULL) |
|
| test (PREP1 "//./", "", NULL) |
|
| test (PREP2 "//./", "//./", "//./") |
|
| test (cd.szCD, cd.szCD, cd.pszLastCDComponent) |
|
| test (cd.szCDPlusSlash, cd.szCDPlusSlash, NULL) |
|