mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
shell32/tests: On NT4 FindExecutable() returns an extra backspace character in some tests.
This commit is contained in:
parent
1736e7eb76
commit
996ced1981
1 changed files with 6 additions and 2 deletions
|
@ -774,14 +774,18 @@ static void test_find_executable(void)
|
|||
}
|
||||
if (rc > 32)
|
||||
{
|
||||
int equal;
|
||||
equal=strcmp(command, argv0) == 0 ||
|
||||
/* NT4 returns an extra 0x8 character! */
|
||||
(strlen(command) == strlen(argv0)+1 && strncmp(command, argv0, strlen(argv0)) == 0);
|
||||
if ((test->todo & 0x20)==0)
|
||||
{
|
||||
ok(strcmp(command, argv0) == 0, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
|
||||
ok(equal, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
|
||||
filename, command, argv0);
|
||||
}
|
||||
else todo_wine
|
||||
{
|
||||
ok(strcmp(command, argv0) == 0, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
|
||||
ok(equal, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
|
||||
filename, command, argv0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue