Do not fix the drive letter to 'C', it fails on other people's boxes.
This commit is contained in:
parent
db78e091da
commit
6e28fe7144
|
@ -725,17 +725,12 @@ static void test_PathNameA(CHAR *curdir, CHAR curDrive, CHAR otherDrive)
|
||||||
"GetFullPathNameA returned '%s' instead of '%s'\n",tmpstr1,tmpstr);
|
"GetFullPathNameA returned '%s' instead of '%s'\n",tmpstr1,tmpstr);
|
||||||
ok(lstrcmpiA(SHORTFILE,strptr)==0,
|
ok(lstrcmpiA(SHORTFILE,strptr)==0,
|
||||||
"GetFullPathNameA returned part '%s' instead of '%s'\n",strptr,SHORTFILE);
|
"GetFullPathNameA returned part '%s' instead of '%s'\n",strptr,SHORTFILE);
|
||||||
/* Windows will insert a drive letter in front of an absolute UNIX path, but
|
/* Windows will insert a drive letter in front of an absolute UNIX path */
|
||||||
Wine probably shouldn't. */
|
|
||||||
sprintf(tmpstr,"/%s/%s",SHORTDIR,SHORTFILE);
|
sprintf(tmpstr,"/%s/%s",SHORTDIR,SHORTFILE);
|
||||||
ok(GetFullPathNameA(tmpstr,MAX_PATH,tmpstr1,&strptr),"GetFullPathNameA failed\n");
|
ok(GetFullPathNameA(tmpstr,MAX_PATH,tmpstr1,&strptr),"GetFullPathNameA failed\n");
|
||||||
todo_wine {
|
sprintf(tmpstr,"%c:\\%s\\%s",*tmpstr1,SHORTDIR,SHORTFILE);
|
||||||
if( curDrive != NOT_A_VALID_DRIVE) {
|
|
||||||
sprintf(tmpstr,"C:\\%s\\%s",SHORTDIR,SHORTFILE);
|
|
||||||
ok(lstrcmpiA(tmpstr,tmpstr1)==0,
|
ok(lstrcmpiA(tmpstr,tmpstr1)==0,
|
||||||
"GetFullPathNameA returned '%s' instead of '%s'\n",tmpstr1,tmpstr);
|
"GetFullPathNameA returned '%s' instead of '%s'\n",tmpstr1,tmpstr);
|
||||||
}
|
|
||||||
}
|
|
||||||
/* This passes in Wine because it still contains the pointer from the previous test */
|
/* This passes in Wine because it still contains the pointer from the previous test */
|
||||||
ok(lstrcmpiA(SHORTFILE,strptr)==0,
|
ok(lstrcmpiA(SHORTFILE,strptr)==0,
|
||||||
"GetFullPathNameA returned part '%s' instead of '%s'\n",strptr,SHORTFILE);
|
"GetFullPathNameA returned part '%s' instead of '%s'\n",strptr,SHORTFILE);
|
||||||
|
|
Loading…
Reference in New Issue